Browse files

cleaning up errors usage

  • Loading branch information...
1 parent 533bb26 commit decdddbf14e39231557f348da08bf36e5daf0bb0 @tomcz tomcz committed Mar 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/models/product_spec.rb
View
2 spec/models/product_spec.rb
@@ -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

0 comments on commit decdddb

Please sign in to comment.