Permalink
Browse files

Failing test for GeneratedAttribute [#5461 state:open]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 1503e45 commit 8ffa695cecfbaf63f2ad15adcc06593df8432976 @rohit rohit committed with josevalim Sep 2, 2010
Showing with 12 additions and 0 deletions.
  1. +12 −0 railties/test/generators/generated_attribute_test.rb
@@ -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.