Skip to content

Commit 10ad19f

Browse files
committed
Fix conditional
1 parent 4e97eab commit 10ad19f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-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

spec/migration_lock_timeout/spec_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
require 'database_cleaner'
22

33
RSpec.configure do |config|
4+
5+
ActiveRecord::Base.logger = Logger.new(STDOUT)
46
config.before(:suite) do
57
ActiveRecord::Base.establish_connection(
68
adapter: "postgresql",

0 commit comments

Comments
 (0)