Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #8170 from arunagw/warning_removed_railties

Removing warning : ambiguous first argument
  • Loading branch information...
commit c49fff93273ddcfdb8ee516e667123c328382be5 2 parents 12d6d3a + 5ff5cce
@spastorino spastorino authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/test/application/initializers/frameworks_test.rb
View
4 railties/test/application/initializers/frameworks_test.rb
@@ -219,7 +219,7 @@ def from_bar_helper
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 @@ def from_bar_helper
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
Please sign in to comment.
Something went wrong with that request. Please try again.