public
Description: Behaviour Driven Development framework for Ruby
Homepage: http://rspec.info
Clone URL: git://github.com/dchelimsky/rspec.git
Click here to lend your support to: rspec and make a donation at www.pledgie.com !
Support argument constraints as values in the hash_including contstraint. 
Buttons up [#501 state:resolved milestone:"1.1.5"]
dchelimsky (author)
Sun Sep 28 13:17:55 -0700 2008
commit  a5baf9f47e17c121f9e1de13e69807283465a7f9
tree    2a2c348a9743270988beab2eedef6562ae3d3010
parent  76c59e3879f124eab671eb24143b611197d20f52
...
61
62
63
64
 
65
66
67
...
61
62
63
 
64
65
66
67
0
@@ -61,7 +61,7 @@ module Spec
0
 
0
         def ==(actual)
0
           @expected.each do | key, value |
0
-            return false unless actual.has_key?(key) && actual[key] == value
0
+            return false unless actual.has_key?(key) && value == actual[key]
0
           end
0
           true
0
         rescue NoMethodError => ex
...
24
25
26
27
28
29
 
30
31
32
...
24
25
26
 
 
 
27
28
29
30
0
@@ -24,9 +24,7 @@ module Spec
0
             end
0
 
0
             it "should match a string against anything()" do
0
-              pending("fix to http://rspec.lighthouseapp.com/projects/5645/tickets/501") do
0
-                hash_including(:a => anything, :b => 2).should == {:a => "1", :b => 2}
0
-              end
0
+              hash_including(:a => anything, :b => 2).should == {:a => "1", :b => 2}
0
             end
0
           end
0
         end

Comments