Skip to content

Commit

Permalink
Fix conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-sharp committed Aug 7, 2024
1 parent 4e97eab commit f9fb0bb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spec/migration_lock_timeout/migration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

def expect_create_table
if ActiveRecord.gem_version >= '7.1'
expect(ActiveRecord::Base.connection).to receive(:execute).
with('BEGIN').
and_call_original
expect(ActiveRecord::Base.connection).to receive(:execute).
with(/CREATE TABLE/).
and_call_original
Expand All @@ -26,7 +23,7 @@ def expect_create_table
end

RSpec.describe ActiveRecord::Migration do
before { ActiveRecord::Base.logger = Logger.new(STDOUT) }

describe '#migrate' do

before(:each) do
Expand Down

0 comments on commit f9fb0bb

Please sign in to comment.