Skip to content

Commit b1e02f9

Browse files
authored
Rails 6: Log subscriber workaround (#799)
* Coerce and call original * Added comment
1 parent 66db048 commit b1e02f9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/cases/coerced_tests.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,3 +1463,14 @@ def test_eager_loading_too_may_ids_coerced
14631463
end
14641464
end
14651465
end
1466+
1467+
1468+
1469+
1470+
class LogSubscriberTest < ActiveRecord::TestCase
1471+
# Call original test from coerced test. Fixes issue on CI with Rails installed as a gem.
1472+
coerce_tests! :test_vebose_query_logs
1473+
def test_vebose_query_logs_coerced
1474+
original_test_vebose_query_logs
1475+
end
1476+
end

0 commit comments

Comments
 (0)