diff options
author | Arun Agrawal <arunagw@gmail.com> | 2012-11-11 15:16:35 +0530 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2012-11-11 15:16:35 +0530 |
commit | 5ff5cce81a4c983d23dc4d7d992685d036e1c3c6 (patch) | |
tree | cb50077af4569773857a070e665d44aa36642d71 /railties/test/application/initializers | |
parent | 12d6d3a6f8914d272529d79cba461759e2dedf09 (diff) | |
download | rails-5ff5cce81a4c983d23dc4d7d992685d036e1c3c6.tar.gz rails-5ff5cce81a4c983d23dc4d7d992685d036e1c3c6.tar.bz2 rails-5ff5cce81a4c983d23dc4d7d992685d036e1c3c6.zip |
Removing warning : ambiguous first argument
Diffstat (limited to 'railties/test/application/initializers')
-rw-r--r-- | railties/test/application/initializers/frameworks_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/initializers/frameworks_test.rb b/railties/test/application/initializers/frameworks_test.rb index 528bec58ef..40d1655c9b 100644 --- a/railties/test/application/initializers/frameworks_test.rb +++ b/railties/test/application/initializers/frameworks_test.rb @@ -219,7 +219,7 @@ module ApplicationTests orig_rails_env, Rails.env = Rails.env, 'development' ActiveRecord::Base.establish_connection assert ActiveRecord::Base.connection - assert_match /#{ActiveRecord::Base.configurations[Rails.env]['database']}/, ActiveRecord::Base.connection_config[:database] + assert_match(/#{ActiveRecord::Base.configurations[Rails.env]['database']}/, ActiveRecord::Base.connection_config[:database]) ensure ActiveRecord::Base.remove_connection ENV["DATABASE_URL"] = orig_database_url if orig_database_url @@ -236,7 +236,7 @@ module ApplicationTests ENV["DATABASE_URL"] = "sqlite3://:@localhost/#{database_url_db_name}" ActiveRecord::Base.establish_connection assert ActiveRecord::Base.connection - assert_match /#{database_url_db_name}/, ActiveRecord::Base.connection_config[:database] + assert_match(/#{database_url_db_name}/, ActiveRecord::Base.connection_config[:database]) ensure ActiveRecord::Base.remove_connection ENV["DATABASE_URL"] = orig_database_url if orig_database_url |