Skip to content

Commit

Permalink
Fixed test names for generated_attribute_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw committed Dec 13, 2012
1 parent 0a6ee1f commit 601cc60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/test/generators/generated_attribute_test.rb
Expand Up @@ -136,7 +136,7 @@ def test_handles_index_names_for_references
assert_equal ["post_id", "post_type"], create_generated_attribute('references{polymorphic}', 'post').index_name assert_equal ["post_id", "post_type"], create_generated_attribute('references{polymorphic}', 'post').index_name
end end


def test_handles_index_names_for_references def test_handles_column_names_for_references
assert_equal "post", create_generated_attribute('string', 'post').column_name assert_equal "post", create_generated_attribute('string', 'post').column_name
assert_equal "post_id", create_generated_attribute('references', 'post').column_name assert_equal "post_id", create_generated_attribute('references', 'post').column_name
assert_equal "post_id", create_generated_attribute('belongs_to', 'post').column_name assert_equal "post_id", create_generated_attribute('belongs_to', 'post').column_name
Expand Down

0 comments on commit 601cc60

Please sign in to comment.