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:
parent
1503e45e2e
commit
8ffa695cec
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue