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:
parent
5996f2804f
commit
611f5f4dac
|
@ -7,4 +7,8 @@ class TagTest < Test::Unit::TestCase
|
||||||
should_ensure_length_at_least :name, 2
|
should_ensure_length_at_least :name, 2
|
||||||
|
|
||||||
should_protect_attributes :secret
|
should_protect_attributes :secret
|
||||||
|
|
||||||
|
should_fail do
|
||||||
|
should_protect_attributes :name
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue