Skip to content

Commit 0f71aa1

Browse files
author
dry-bot
committed
[devtools] sync
1 parent c5c1529 commit 0f71aa1

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
11
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
22

3+
## 1.8.0 2025-03-09
4+
5+
6+
### Added
7+
8+
- Added super_diff extension for improved struct diffing in RSpec tests (@flash-gordon in #197)
9+
10+
Add this to your Gemfile:
11+
```ruby
12+
gem 'super_diff', group: :test
13+
```
14+
15+
Then activate the extension in your spec_helper:
16+
```ruby
17+
Dry::Struct.load_extensions(:super_diff)
18+
```
19+
20+
Now this
21+
22+
```ruby
23+
expected: #<Test::User name="Jane" age=22>
24+
got: #<Test::User name="Jane" age=21>
25+
26+
(compared using eql?)
27+
28+
Diff:
29+
@@ -1 +1 @@
30+
-#<Test::User name="Jane" age=22>
31+
+#<Test::User name="Jane" age=21>
32+
```
33+
34+
will become this:
35+
36+
```ruby
37+
expected: #<Test::User name: "Jane", age: 22>
38+
got: #<Test::User name: "Jane", age: 21>
39+
40+
(compared using eql?)
41+
42+
#<Test::User {
43+
name: "Jane",
44+
- age: 22
45+
+ age: 21
46+
}>
47+
```
48+
49+
50+
[Compare v1.7.1...v1.8.0](https://github.com/dry-rb/dry-struct/compare/v1.7.1...v1.8.0)
51+
352
## 1.7.1 2025-01-31
453

554

0 commit comments

Comments
 (0)