spec/toy/exceptions_spec.rb in toystore-0.6.3 vs spec/toy/exceptions_spec.rb in toystore-0.6.4
- old
+ new
@@ -1,8 +1,8 @@
require 'helper'
-describe Toy::RecordInvalidError do
+describe Toy::RecordInvalid do
uses_constants('User')
before do
User.attribute(:name, String)
User.attribute(:age, Integer)
@@ -11,8 +11,8 @@
end
it "should include a message of the errors" do
user = User.new
user.should_not be_valid
- Toy::RecordInvalidError.new(user).message.should == "Invalid record: Name can't be blank and Age can't be blank"
+ Toy::RecordInvalid.new(user).message.should == "Invalid record: Name can't be blank and Age can't be blank"
end
end
\ No newline at end of file