Skip to content

Instantly share code, notes, and snippets.

@junderhill
Created October 7, 2014 12:03
Show Gist options
  • Save junderhill/822f0b2146aaaf4f4d96 to your computer and use it in GitHub Desktop.
Save junderhill/822f0b2146aaaf4f4d96 to your computer and use it in GitHub Desktop.
Mocking sms lib
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