Created
June 9, 2020 15:16
-
-
Save dabit/b132640b5a5cb06603643ca6ab95b075 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StimulusReflex::TestCase < ActionCable::Connection::TestCase | |
tests ApplicationCable::Connection | |
def channel | |
@channel = StimulusReflex::Channel.new connect, "test" | |
end | |
def reflex_class | |
self.class.determine_constant_from_test_name(self.class_name) { |constant| constant } | |
end | |
def reflex | |
@reflex ||= reflex_class.new channel | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment