Skip to content

Commit

Permalink
Merge pull request rails#24613 from vipulnsward/fix-dbs-test-assertions
Browse files Browse the repository at this point in the history
Fixed assertions with regex used in dbs tests[warnings]
  • Loading branch information
spastorino committed Apr 19, 2016
2 parents 04c512d + 324ae55 commit 7d8f5fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/test/application/rake/dbs_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ def set_database_url
def db_create_and_drop(expected_database)
Dir.chdir(app_path) do
output = `bin/rails db:create`
assert_match /Created database/, output
assert_match(/Created database/, output)
assert File.exist?(expected_database)
assert_equal expected_database, ActiveRecord::Base.connection_config[:database]
output = `bin/rails db:drop`
assert_match /Dropped database/, output
assert_match(/Dropped database/, output)
assert !File.exist?(expected_database)
end
end
Expand Down

0 comments on commit 7d8f5fe

Please sign in to comment.