Skip to content

Commit f9fb0bb

Browse files
committed
Fix conditional
1 parent 4e97eab commit f9fb0bb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spec/migration_lock_timeout/migration_spec.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010
def expect_create_table
1111
if ActiveRecord.gem_version >= '7.1'
12-
expect(ActiveRecord::Base.connection).to receive(:execute).
13-
with('BEGIN').
14-
and_call_original
1512
expect(ActiveRecord::Base.connection).to receive(:execute).
1613
with(/CREATE TABLE/).
1714
and_call_original
@@ -26,7 +23,7 @@ def expect_create_table
2623
end
2724

2825
RSpec.describe ActiveRecord::Migration do
29-
before { ActiveRecord::Base.logger = Logger.new(STDOUT) }
26+
3027
describe '#migrate' do
3128

3229
before(:each) do

0 commit comments

Comments
 (0)