Created
May 5, 2014 18:29
-
-
Save elizabrock/49c1e0d4c513c3e3b293 to your computer and use it in GitHub Desktop.
Message Expectations Example
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 Cron | |
def self.run! | |
User.send_digests! | |
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
require 'spec_helper' | |
describe Cron do | |
context "delegating to models" do | |
it "should delegate to User" do | |
expect(User).to receive(:send_digests!) | |
Cron.run! | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment