Skip to content

Commit 4204a5e

Browse files
committed
Fix ActionCable test helper loading on JRuby
For JRuby 10 with Rails, these files needs to be loaded.
1 parent 6830036 commit 4204a5e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

spec/lib/appsignal/hooks/action_cable_spec.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
context "with ActionCable" do
44
require "action_cable/engine"
55
# Require test helper to test with ConnectionStub
6-
require "action_cable/channel/test_case" if DependencyHelper.rails6_present?
6+
if DependencyHelper.rails6_present?
7+
require "action_cable/test_helper"
8+
require "action_cable/channel/base"
9+
require "action_cable/channel/callbacks"
10+
require "action_cable/channel/test_case"
11+
end
712

813
describe ".dependencies_present?" do
914
subject { described_class.new.dependencies_present? }

0 commit comments

Comments
 (0)