public
Rubygem
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/thoughtbot/shoulda.git
Added `should_fail` scenario for testing `should_protect_attributes`

  * Tests the failure case where the model uses attr_accessible instead of 
  attr_protected
rmm5t (author)
Mon Sep 15 05:55:03 -0700 2008
commit  611f5f4dac6844daa19a1d64b7120f22de94a8b7
tree    56c4691349a570c1172fe20dff12722af70a7e44
parent  5996f2804fdb7858d4d55ebdbed47ceade8bb6a2
...
7
8
9
 
 
 
 
10
...
7
8
9
10
11
12
13
14
0
@@ -7,4 +7,8 @@ class TagTest < Test::Unit::TestCase
0
   should_ensure_length_at_least :name, 2
0
 
0
   should_protect_attributes :secret
0
+
0
+ should_fail do
0
+ should_protect_attributes :name
0
+ end
0
 end

Comments

    No one has commented yet.