Skip to content

Commit

Permalink
Don't require action_cable/channel if it's already defined
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoroth authored Jul 17, 2023
1 parent 0a35453 commit 90b0852
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/minitest-spec-rails/init/action_cable.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
require 'action_cable/channel'
unless defined?(ActionCable::Channel)
require 'action_cable/channel'
end

require 'action_cable/channel/test_case'

module MiniTestSpecRails
Expand Down

0 comments on commit 90b0852

Please sign in to comment.