Skip to content

Instantly share code, notes, and snippets.

@danhodge
Created March 1, 2012 16:58
Show Gist options
  • Save danhodge/1951393 to your computer and use it in GitHub Desktop.
Save danhodge/1951393 to your computer and use it in GitHub Desktop.
achievement unlocked!
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
class LionelRitchie < MessageReceiver
include Commodore
def say(message)
# TODO
end
end
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