Created
September 30, 2013 10:35
-
-
Save wrozka/6762010 to your computer and use it in GitHub Desktop.
This file contains 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
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