Skip to content

Instantly share code, notes, and snippets.

@wrozka
Created September 30, 2013 10:35
Show Gist options
  • Save wrozka/6762010 to your computer and use it in GitHub Desktop.
Save wrozka/6762010 to your computer and use it in GitHub Desktop.
require 'bogus/rspec'
describe 'a bug' do
class NotificationListener
def auction_ended_no_bids(auction)
end
end
class Auction
end
let(:listener) { fake(NotificationListener) }
let(:auction) { fake(Auction) }
it "publishes an ended_no_bids event" do
listener.should have_received.auction_ended_no_bids(auction)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment