Skip to content

Commit

Permalink
cleaning up errors usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcz committed Mar 10, 2010
1 parent 533bb26 commit decdddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/product_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
product = Product.new(:title => title, :description => "yyy", :price => 1, :image_url => "fred.gif")
product.should_not be_valid
product.should have(1).error_on(:title)
product.errors_on(:title).should == ['has already been taken']
product.errors.on(:title).should == 'has already been taken'
end
end

Expand Down

0 comments on commit decdddb

Please sign in to comment.