Skip to content

Commit

Permalink
Failing test for GeneratedAttribute [#5461 state:open]
Browse files Browse the repository at this point in the history
Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
rohitarondekar authored and josevalim committed Sep 2, 2010
1 parent 86a96fb commit 5c06777
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions railties/test/generators/generated_attribute_test.rb
Expand Up @@ -108,4 +108,16 @@ def test_reference_is_false
)
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

0 comments on commit 5c06777

Please sign in to comment.