Skip to content

Commit

Permalink
Added should_fail scenario for testing should_protect_attributes
Browse files Browse the repository at this point in the history
  * Tests the failure case where the model uses attr_accessible instead of attr_protected
  • Loading branch information
rmm5t committed Sep 15, 2008
1 parent 5996f28 commit 611f5f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/tag_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 611f5f4

Please sign in to comment.