mirror of https://github.com/rails/rails
Merge pull request #50108 from jonathanhefner/follow-up-50104
Change disjunction to conjunction in suggestion
This commit is contained in:
commit
c2a33059d8
|
@ -1,5 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
require "active_support/core_ext/string/filters"
|
||||||
|
|
||||||
module ActiveRecord
|
module ActiveRecord
|
||||||
module ConnectionAdapters
|
module ConnectionAdapters
|
||||||
extend ActiveSupport::Autoload
|
extend ActiveSupport::Autoload
|
||||||
|
@ -32,7 +34,7 @@ module ActiveRecord
|
||||||
raise AdapterNotFound, <<~MSG.squish
|
raise AdapterNotFound, <<~MSG.squish
|
||||||
Database configuration specifies nonexistent '#{adapter_name}' adapter.
|
Database configuration specifies nonexistent '#{adapter_name}' adapter.
|
||||||
Available adapters are: #{@adapters.keys.sort.join(", ")}.
|
Available adapters are: #{@adapters.keys.sort.join(", ")}.
|
||||||
Ensure that the adapter is spelled correctly in config/database.yml or that you've added the necessary
|
Ensure that the adapter is spelled correctly in config/database.yml and that you've added the necessary
|
||||||
adapter gem to your Gemfile if it's not in the list of available adapters.
|
adapter gem to your Gemfile if it's not in the list of available adapters.
|
||||||
MSG
|
MSG
|
||||||
end
|
end
|
||||||
|
|
|
@ -16,7 +16,7 @@ module ActiveRecord
|
||||||
Base.connection_handler.establish_connection "ridiculous://foo?encoding=utf8"
|
Base.connection_handler.establish_connection "ridiculous://foo?encoding=utf8"
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_match "Database configuration specifies nonexistent 'ridiculous' adapter. Available adapters are: abstract, fake, mysql2, postgresql, sqlite3, trilogy. Ensure that the adapter is spelled correctly in config/database.yml or that you've added the necessary adapter gem to your Gemfile if it's not in the list of available adapters.", error.message
|
assert_match "Database configuration specifies nonexistent 'ridiculous' adapter. Available adapters are: abstract, fake, mysql2, postgresql, sqlite3, trilogy. Ensure that the adapter is spelled correctly in config/database.yml and that you've added the necessary adapter gem to your Gemfile if it's not in the list of available adapters.", error.message
|
||||||
end
|
end
|
||||||
|
|
||||||
# The abstract adapter is used simply to bypass the bit of code that
|
# The abstract adapter is used simply to bypass the bit of code that
|
||||||
|
|
Loading…
Reference in New Issue