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
1 changed files with 4 additions and 0 deletions

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