dynport_tools 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/dynport_tools.gemspec +1 -1
- data/lib/dynport_tools/differ.rb +2 -1
- data/spec/dynport_tools/differ_spec.rb +4 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/dynport_tools.gemspec
CHANGED
data/lib/dynport_tools/differ.rb
CHANGED
@@ -106,6 +106,10 @@ describe DynportTools::Differ do
|
|
106
106
|
differ.diff_to_message_lines(nil).should == []
|
107
107
|
end
|
108
108
|
|
109
|
+
it "uses inspect when key is a hash" do
|
110
|
+
differ.diff_to_message_lines({ { :a => 1 } => [1, 2]}).should == ["expected {:a=>1} to be <1> but was <2>"]
|
111
|
+
end
|
112
|
+
|
109
113
|
it "returns a message for array" do
|
110
114
|
differ.diff_to_message_lines([1, 2]).should == ["expected <1> to be <2>"]
|
111
115
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynport_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Schwab
|