aboutsummaryrefslogblamecommitdiffstats
path: root/actioncable/test/javascript/src/test_helpers/index.coffee
blob: c84cbbcb2ca3fc826aabb7b3b0356de9a2f10e9b (plain) (tree)
1
2
3
4
5
6
7
8
9




                                    
 


                           

                                                           
#= require_self
#= require_tree .

ActionCable.TestHelpers =
  testURL: "ws://cable.example.com/"

  defer: (callback) ->
    setTimeout(callback, 1)

originalWebSocket = ActionCable.WebSocket
QUnit.testDone -> ActionCable.WebSocket = originalWebSocket