Hi all !!
I have this code:
describe Account, “when first created” do
@account = Account.new
it “should have a balance of $0” do
@account.balance.should eql(Money.new(0, :dollars))
@account = nil
How can I pass the @account.balance.should eql(Money.new(0, :dollars))
spec. From my understanding you .eql? in ruby is true if the object
are the same (reference points to same object) or if one inherits the
But still can make it work.