Skip to content

Commit 06399dc

Browse files
committed
remove more reference
1 parent b3fa643 commit 06399dc

File tree

5 files changed

+18
-16
lines changed

5 files changed

+18
-16
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212

1313
jobs:
14-
rspec:
14+
test:
1515
runs-on: ubuntu-latest
1616
services:
1717
mysql:
@@ -63,7 +63,7 @@ jobs:
6363
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails }}.gemfile
6464
RAILS_ENV: test
6565

66-
- name: RSpec
66+
- name: Test
6767
env:
6868
RAILS_VERSION: ${{ matrix.rails }}
6969
DB_ADAPTER: ${{ matrix.adapter }}

.github/workflows/ci_jruby.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16-
rspec:
16+
test:
1717
runs-on: ubuntu-latest
1818
services:
1919
mysql:
@@ -59,7 +59,7 @@ jobs:
5959
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails }}.gemfile
6060
RAILS_ENV: test
6161

62-
- name: RSpec
62+
- name: Test
6363
env:
6464
RAILS_VERSION: ${{ matrix.rails }}
6565
DB_ADAPTER: ${{ matrix.adapter }}

.github/workflows/ci_truffleruby.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16-
rspec:
16+
test:
1717
runs-on: ubuntu-latest
1818
services:
1919
mysql:
@@ -62,7 +62,7 @@ jobs:
6262
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails }}.gemfile
6363
RAILS_ENV: test
6464

65-
- name: RSpec
65+
- name: Test
6666
env:
6767
RAILS_VERSION: ${{ matrix.rails }}
6868
DB_ADAPTER: ${{ matrix.adapter }}

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ source 'https://rubygems.org'
44

55
gemspec
66

7+
gem 'railties', '~> 7.1.0'

test/test_helper.rb

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
require 'support/query_counter'
1313
require 'parallel'
1414
require 'timecop'
15+
require 'rails'
1516

1617
ActiveRecord::Base.configurations = {
1718
default_env: {
@@ -71,21 +72,21 @@ def exceed_query_limit(num, &block)
7172
end
7273

7374
class QueryCounter
74-
attr_reader :query_count
75+
attr_reader :query_count
7576

76-
def initialize
77-
@query_count = 0
78-
end
77+
def initialize
78+
@query_count = 0
79+
end
7980

80-
def to_proc
81-
lambda(&method(:callback))
82-
end
81+
def to_proc
82+
lambda(&method(:callback))
83+
end
8384

84-
def callback(name, start, finish, message_id, values)
85-
@query_count += 1 unless %w(CACHE SCHEMA).include?(values[:name])
85+
def callback(name, start, finish, message_id, values)
86+
@query_count += 1 unless %w(CACHE SCHEMA).include?(values[:name])
87+
end
8688
end
8789
end
88-
end
8990

9091
# Configure parallel tests
9192
Thread.abort_on_exception = true

0 commit comments

Comments
 (0)