Remove AbstractMysqlAdapterTest
This test was added in 8f5095a to ensure that there was coverage for `AbstractMysqlAdapter#execute`, but 63c0d6b refactored `#execute` to be defined at the Abstract adapter level, and rely on concrete MySQL adapters to implement `#raw_execute`. This test won't pass without having the `ExampleMysqlAdapter` implement `#raw_execute`, but this test is obsolete now that AbstractMysql2Adapter doesn't implement `#execute` directly.
This commit is contained in:
parent
8bdf5e3557
commit
abe0b123bc
@ -1,24 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "cases/helper"
|
||||
|
||||
class AbstractMysqlAdapterTest < ActiveRecord::Mysql2TestCase
|
||||
if current_adapter?(:Mysql2Adapter)
|
||||
class ExampleMysqlAdapter < ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter; end
|
||||
|
||||
def setup
|
||||
@conn = ExampleMysqlAdapter.new(
|
||||
ActiveRecord::ConnectionAdapters::Mysql2Adapter.new_client({}),
|
||||
ActiveRecord::Base.logger,
|
||||
nil,
|
||||
{ socket: File::NULL }
|
||||
)
|
||||
end
|
||||
|
||||
def test_execute_not_raising_error
|
||||
assert_nothing_raised do
|
||||
@conn.execute("SELECT 1")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user