1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixed assertions with regex used in dbs tests

This commit is contained in:
Vipul A M 2016-04-19 04:02:10 +05:30
parent 983b743c8c
commit 324ae559af

View file

@ -29,11 +29,11 @@ module ApplicationTests
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