Skip to content

Instantly share code, notes, and snippets.

@zenom
Created December 5, 2010 04:43
Show Gist options
  • Save zenom/728806 to your computer and use it in GitHub Desktop.
Save zenom/728806 to your computer and use it in GitHub Desktop.
it 'send message should trigger tinder' do
connection = mock('Tinder::Campfire')
room = mock('Tinder::Room')
Tinder::Campfire.stub!(:new).and_return(connection)
connection.stub_chain(:find_room_by_name).and_return(room)
room.stub!(:speak)
room.should_receive(:leave)
@build.build_completed!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment