1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Failing test for GeneratedAttribute [#5461 state:open]

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
rohit 2010-09-02 15:11:58 +05:30 committed by José Valim
parent 1503e45e2e
commit 8ffa695cec

View file

@ -108,4 +108,16 @@ class GeneratedAttributeTest < Rails::Generators::TestCase
)
end
end
def test_nil_type_raises_exception
assert_raise Thor::Error do
create_generated_attribute(nil, 'title')
end
end
def test_missing_type_raises_exception
assert_raise Thor::Error do
create_generated_attribute(:'', 'title')
end
end
end