aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-05-16 12:07:44 +0200
committerJosé Valim <jose.valim@gmail.com>2010-05-16 12:07:44 +0200
commit1a2d556de7935588e04c541e6c0804b5533db6b5 (patch)
treee042c1ee5ee778b750d6c4ea5c70078f0ab31d2b /railties/lib
parent5ff6de0982c165bb9038258d867398c73c142084 (diff)
downloadrails-1a2d556de7935588e04c541e6c0804b5533db6b5.tar.gz
rails-1a2d556de7935588e04c541e6c0804b5533db6b5.tar.bz2
rails-1a2d556de7935588e04c541e6c0804b5533db6b5.zip
Rename assert_attribute_type to asser_field_type.
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators/test_case.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/test_case.rb b/railties/lib/rails/generators/test_case.rb
index 24b57aabf9..952400e049 100644
--- a/railties/lib/rails/generators/test_case.rb
+++ b/railties/lib/rails/generators/test_case.rb
@@ -192,11 +192,11 @@ module Rails
# Asserts the given field name gets translated to an attribute type
# properly.
#
- # assert_attribute_type 'date', :date_select
+ # assert_field_type :date, :date_select
#
- def assert_attribute_type(name, attribute_type)
+ def assert_field_type(name, attribute_type)
assert_equal(
- Rails::Generators::GeneratedAttribute.new('test', name).field_type,
+ Rails::Generators::GeneratedAttribute.new('test', name.to_s).field_type,
attribute_type
)
end