Skip to content

Commit

Permalink
Merge pull request #2196 from koic/suppress_rubocop_offense
Browse files Browse the repository at this point in the history
Suppress RuboCop's offense
  • Loading branch information
yahonda authored Jul 8, 2021
2 parents b13ae02 + e6d5af2 commit b440bbf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1122,13 +1122,13 @@ class ::TestEmployee < ActiveRecord::Base; end

before(:each) do
@conn.instance_variable_set :@would_execute_sql, @would_execute_sql = +""
class <<@conn
class << @conn
def execute(sql, name = nil); @would_execute_sql << sql << ";\n"; end
end
end

after(:each) do
class <<@conn
class << @conn
remove_method :execute
end
@conn.instance_eval { remove_instance_variable :@would_execute_sql }
Expand Down

0 comments on commit b440bbf

Please sign in to comment.