Created
October 7, 2014 12:03
-
-
Save junderhill/822f0b2146aaaf4f4d96 to your computer and use it in GitHub Desktop.
Mocking sms lib
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 SMS do | |
let(:mockClockworkApi){ double{"ClockworkApi"} } | |
subject { SMS.new(:mockClockworkApi) } | |
context ".build" do | |
it "should call messages.build" do | |
:mockClockworkApi.should_receive(???).once | |
end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment