search for: valid_bill_attribut

Displaying 1 result from an estimated 1 matches for "valid_bill_attribut".

Did you mean: valid_bill_attributes
2007 May 03
1
unexpected failures with --reverse
...passes when run without --reverse and then fails with --reverse. What am I missing? I''m using the plugin versions of both rspec and rspec_on_rails 0.9.2. Here is the offending spec (Bill is an ActiveRecord model in a Rails app): ---------- describe Bill, " when valid" do def valid_bill_attributes { :uuid => "ec5e943f-a819-433b-b786-ee847bb144e2", :date => Date.today, :amount => Money.new(15000) } end it "should have a uuid" do bill = Bill.create(valid_bill_attributes) bill.uuid = nil bill.should have(2).errors_on(:uuid) end...