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:
parent
5996f2804f
commit
611f5f4dac
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue