test/unit/user_test.rb in technicalpickles-shoulda-2.0.0 vs test/unit/user_test.rb in technicalpickles-shoulda-2.0.1

- old
+ new

@@ -8,10 +8,11 @@ should_have_many :friendships should_have_many :friends should_have_one :address + should_have_one :address, :dependent => :destroy should_have_indices :email, :name, [:email, :name] should_have_index :age should_have_named_scope :old, :conditions => "age > 50" @@ -42,6 +43,10 @@ should_ensure_length_is :ssn, 9, :message => "Social Security Number is not the right length" should_only_allow_numeric_values_for :ssn should_have_readonly_attributes :name + + should_fail do + should_protect_attributes :name, :age + end end