diff_matcher 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/diff_matcher/version.rb +1 -1
- data/spec/diff_matcher/difference_spec.rb +9 -9
- metadata +10 -2
data/lib/diff_matcher/version.rb
CHANGED
@@ -414,23 +414,23 @@ describe "DiffMatcher::difference(expected, actual, opts)" do
|
|
414
414
|
Where, - 1 missing, + 1 additional, | 2 match_matcher
|
415
415
|
EOF
|
416
416
|
|
417
|
-
context "more complex"
|
417
|
+
context "more complex," do
|
418
418
|
expected, same, different =
|
419
419
|
DiffMatcher::AllMatcher[
|
420
420
|
DiffMatcher::Matcher[
|
421
|
-
{nombre
|
422
|
-
{name
|
421
|
+
{:nombre=>String, :edad=>Fixnum},
|
422
|
+
{:name=>String, :age=>Fixnum}
|
423
423
|
]
|
424
424
|
],
|
425
425
|
[
|
426
|
-
{name
|
427
|
-
{name
|
428
|
-
{name
|
426
|
+
{:name=>"Alice", :age=>10},
|
427
|
+
{:name=>"Bob" , :age=>20},
|
428
|
+
{:name=>"Con" , :age=>30}
|
429
429
|
],
|
430
430
|
[
|
431
|
-
{name
|
432
|
-
{name
|
433
|
-
{nombre
|
431
|
+
{:name=>"Alice", :age=>10 },
|
432
|
+
{:name=>"Bob" , :age=>nil},
|
433
|
+
{:nombre=>"Con", :edad=>30}
|
434
434
|
]
|
435
435
|
|
436
436
|
it_behaves_like "a diff matcher", expected, same, different,
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diff_matcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 9
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 2.1.1
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Playup
|
@@ -62,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
67
|
requirements:
|
63
68
|
- - ">="
|
64
69
|
- !ruby/object:Gem::Version
|
65
|
-
hash:
|
70
|
+
hash: 3
|
66
71
|
segments:
|
67
72
|
- 0
|
68
73
|
version: "0"
|
@@ -71,6 +76,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
76
|
requirements:
|
72
77
|
- - ">="
|
73
78
|
- !ruby/object:Gem::Version
|
79
|
+
hash: 3
|
80
|
+
segments:
|
81
|
+
- 0
|
74
82
|
version: "0"
|
75
83
|
requirements: []
|
76
84
|
|