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
1 changed files with 12 additions and 0 deletions

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