Skip to content

Instantly share code, notes, and snippets.

View sulmanweb's full-sized avatar

Sulman Baig sulmanweb

View GitHub Profile
@gudongfeng
gudongfeng / test_adapter.rb
Last active April 24, 2018 14:07
Rails ActionCable Channel Rspec test
# spec/channels/stubs/test_adapter.rb
class SuccessAdapter < ActionCable::SubscriptionAdapter::Base
def broadcast(channel, payload)
end
def subscribe(channel, callback, success_callback = nil)
end
def unsubscribe(channel, callback)
end