1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Added should_fail scenario for testing should_protect_attributes

* Tests the failure case where the model uses attr_accessible instead of attr_protected
This commit is contained in:
Ryan McGeary 2008-09-15 08:55:03 -04:00
parent 5996f2804f
commit 611f5f4dac

View file

@ -7,4 +7,8 @@ class TagTest < Test::Unit::TestCase
should_ensure_length_at_least :name, 2
should_protect_attributes :secret
should_fail do
should_protect_attributes :name
end
end