spec/unit/connection_manager_spec.rb in websocket-rails-0.1.5 vs spec/unit/connection_manager_spec.rb in websocket-rails-0.1.6

- old
+ new

@@ -56,10 +56,10 @@ context "when receiving a new event" do before(:each) { open_connection } it "should dispatch the appropriate event through the Dispatcher" do - mock_event = ["new_message","data"].to_json + mock_event = ["new_message",{:data =>"data"}].to_json dispatcher.should_receive(:dispatch) do |event| event.name.should == :new_message event.data.should == "data" event.connection.should == @mock_socket end