Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Failing test for GeneratedAttribute [#5461 state:open]
Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
rohitarondekar authored and josevalim committed Sep 2, 2010
1 parent 1503e45 commit 8ffa695
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 8ffa695

Please sign in to comment.