Created
March 1, 2012 16:58
-
-
Save danhodge/1951393 to your computer and use it in GitHub Desktop.
achievement unlocked!
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
describe MessageReceiver do | |
context 'with a hello message' do | |
let(:message) { "hello" } | |
it 'responds accordingly' do | |
subject.receive(message).should == 'is it me your looking for?' | |
end | |
end | |
end |
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
class LionelRitchie < MessageReceiver | |
include Commodore | |
def say(message) | |
# TODO | |
end | |
end |
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
describe LionelRitchie do | |
it_should_behave_like Commodore | |
let(:it_together) { | |
#TODO | |
} | |
it "is the way it should be" do | |
you_and_me = [subject.say(:you), subject.say(:me)] | |
you_and_me.should == it_together | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment