I created two different objects in a ruby ββwith exactly the same attributes and values.
Now I would like to compare that the contents of both objects are the same, but the following comparisons:
actual.should == expected actual.should eq(expected) actual.should (be expected)
failure:
Diff: @@ -1,4 +1,4 @@ -
Is there any way in rspec / ruby ββto easily achieve this?
Hooray!!
ruby rspec
mickael
source share