mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Failing test for GeneratedAttribute [#5461 state:open]
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user