Created
February 3, 2011 16:23
-
-
Save arunthampi/809721 to your computer and use it in GitHub Desktop.
Testing Web Sockets (Pusher) with Jasmine
This file contains hidden or 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
describe('pusher', function() { | |
describe('message event', function() { | |
it("should append the message to the timeline", function() { | |
spyOn(room, 'appendMessage'); | |
spec.loadFixture('room-show'); | |
room.pusher.send_local_event('message', messageStub('abc-def-ced'), room.room_id); | |
expect(room.appendMessage).toHaveBeenCalled(); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment