I've created 2 different objects in ruby with exactly the same attributes and values.

I'd like to compare now that the content of both objects is the same but the following comparisons:

actual.should == expected
actual.should eq(expected)
actual.should (be expected)

fail with:

  Diff:
  @@ -1,4 +1,4 @@
  -#<Station:0x2807628
  +#<Station:0x2807610

Is there any way in rspec/ruby to easily achieve this?

Cheers!!

Edit
Report