Skip to content
Browse files

Fixed 1.8.7 spec support

  • Loading branch information...
1 parent aac1aa6 commit 78e0ecbbf0017da520f63388643c21641dee99a2 @beerlington committed Sep 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/sudo_attributes_spec.rb
View
4 spec/sudo_attributes_spec.rb
@@ -24,7 +24,7 @@
end
it "should not raise an error with sudo_update_attributes" do
- -> { cat.sudo_update_attributes(:color => "") }.should_not raise_error(ActiveRecord::RecordInvalid)
+ lambda { cat.sudo_update_attributes(:color => "") }.should_not raise_error(ActiveRecord::RecordInvalid)
end
it "should set the name with sudo_update_attributes!" do
@@ -33,7 +33,7 @@
end
it "should raise an error with sudo_update_attributes!" do
- -> { cat.sudo_update_attributes!(:color => "") }.should raise_error(ActiveRecord::RecordInvalid)
+ lambda { cat.sudo_update_attributes!(:color => "") }.should raise_error(ActiveRecord::RecordInvalid)
end
end

0 comments on commit 78e0ecb

Please sign in to comment.
Something went wrong with that request. Please try again.