diff options
author | José Valim <jose.valim@gmail.com> | 2010-05-16 12:07:44 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-05-16 12:07:44 +0200 |
commit | 1a2d556de7935588e04c541e6c0804b5533db6b5 (patch) | |
tree | e042c1ee5ee778b750d6c4ea5c70078f0ab31d2b /railties/test/generators | |
parent | 5ff6de0982c165bb9038258d867398c73c142084 (diff) | |
download | rails-1a2d556de7935588e04c541e6c0804b5533db6b5.tar.gz rails-1a2d556de7935588e04c541e6c0804b5533db6b5.tar.bz2 rails-1a2d556de7935588e04c541e6c0804b5533db6b5.zip |
Rename assert_attribute_type to asser_field_type.
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/generated_attribute_test.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/railties/test/generators/generated_attribute_test.rb b/railties/test/generators/generated_attribute_test.rb index ccd0c65905..dacb06fb13 100644 --- a/railties/test/generators/generated_attribute_test.rb +++ b/railties/test/generators/generated_attribute_test.rb @@ -6,35 +6,35 @@ class GeneratedAttributeTest < Rails::Generators::TestCase def test_field_type_returns_text_field %w(integer float decimal string).each do |name| - assert_attribute_type name, :text_field + assert_field_type name, :text_field end end def test_field_type_returns_datetime_select %w(datetime timestamp).each do |name| - assert_attribute_type name, :datetime_select + assert_field_type name, :datetime_select end end def test_field_type_returns_time_select - assert_attribute_type 'time', :time_select + assert_field_type 'time', :time_select end def test_field_type_returns_date_select - assert_attribute_type 'date', :date_select + assert_field_type 'date', :date_select end def test_field_type_returns_text_area - assert_attribute_type 'text', :text_area + assert_field_type 'text', :text_area end def test_field_type_returns_check_box - assert_attribute_type 'boolean', :check_box + assert_field_type 'boolean', :check_box end def test_field_type_with_unknown_type_returns_text_field %w(foo bar baz).each do |name| - assert_attribute_type name, :text_field + assert_field_type name, :text_field end end end |