diff options
author | Florent Guilleux <florent2@gmail.com> | 2012-12-01 13:20:39 -0500 |
---|---|---|
committer | Florent Guilleux <florent2@gmail.com> | 2012-12-01 13:20:39 -0500 |
commit | 90c887fa7d0c454b7533e208daefc342dea4d5f3 (patch) | |
tree | 330d9fd049b3fbbba80dbed5dbe0620d972d06d2 /railties/test | |
parent | 5ff59704f68d284381606a1b76e4ffcfd73b2cfa (diff) | |
download | rails-90c887fa7d0c454b7533e208daefc342dea4d5f3.tar.gz rails-90c887fa7d0c454b7533e208daefc342dea4d5f3.tar.bz2 rails-90c887fa7d0c454b7533e208daefc342dea4d5f3.zip |
Remove trailing whitespaces
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/commands/console_test.rb | 2 | ||||
-rw-r--r-- | railties/test/generators/generated_attribute_test.rb | 4 | ||||
-rw-r--r-- | railties/test/generators/migration_generator_test.rb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/commands/console_test.rb b/railties/test/commands/console_test.rb index f99ea13022..87f5560434 100644 --- a/railties/test/commands/console_test.rb +++ b/railties/test/commands/console_test.rb @@ -78,7 +78,7 @@ class Rails::ConsoleTest < ActiveSupport::TestCase assert_match(/\sspecial-production\s/, output) end end - + def test_e_option start ['-e', 'special-production'] assert_match(/\sspecial-production\s/, output) diff --git a/railties/test/generators/generated_attribute_test.rb b/railties/test/generators/generated_attribute_test.rb index 6ab1cd58c7..c4288a0e6f 100644 --- a/railties/test/generators/generated_attribute_test.rb +++ b/railties/test/generators/generated_attribute_test.rb @@ -117,13 +117,13 @@ class GeneratedAttributeTest < Rails::Generators::TestCase assert create_generated_attribute("#{attribute_type}{polymorphic}").polymorphic? end end - + def test_polymorphic_reference_is_false %w(foo bar baz).each do |attribute_type| assert !create_generated_attribute("#{attribute_type}{polymorphic}").polymorphic? end end - + def test_blank_type_defaults_to_string_raises_exception assert_equal :string, create_generated_attribute(nil, 'title').type assert_equal :string, create_generated_attribute("", 'title').type diff --git a/railties/test/generators/migration_generator_test.rb b/railties/test/generators/migration_generator_test.rb index 15e5a0b92b..c7b97cff58 100644 --- a/railties/test/generators/migration_generator_test.rb +++ b/railties/test/generators/migration_generator_test.rb @@ -28,7 +28,7 @@ class MigrationGeneratorTest < Rails::Generators::TestCase run_generator [migration] assert_migration "db/migrate/change_title_body_from_posts.rb", /class #{migration} < ActiveRecord::Migration/ end - + def test_migration_with_invalid_file_name migration = "add_something:datetime" assert_raise ActiveRecord::IllegalMigrationNameError do |