test/hermes/builders_test.rb in hermes-0.4.1 vs test/hermes/builders_test.rb in hermes-0.5.0
- old
+ new
@@ -82,9 +82,14 @@
user = valid_another_user_attributes
assert_equal 'Another user', user[:name]
assert_equal FIXTURE_DATE, user[:active_at]
end
+ test 'bypass mass-assignment protection' do
+ user = create_another_user(:protected_attr => 1)
+ assert_equal 1, user.protected_attr
+ end
+
test 'respond_to is valid for attributes' do
assert respond_to?(:valid_another_user_attributes)
end
test 'respond_to is valid for builder' do