Sha256: 3c67d66cb2376496a16716ed647de77557e2a6ba921e067f91f608f76ffeb8d0
Contents?: true
Size: 660 Bytes
Versions: 8
Compression:
Stored size: 660 Bytes
Contents
require 'spec_helper' module Weeter module Plugins describe NotificationPlugin do describe "#publish_tweet" do it "should delegate to the configured plugin" do client_app_config = Hashie::Mash.new(:notification_plugin => :http) tweet_item = TweetItem.new({}) mock_plugin = mock(Notification::Http) Notification::Http.should_receive(:new).and_return(mock_plugin) mock_plugin.should_receive(:publish_tweet).with(tweet_item) plugin = NotificationPlugin.new(client_app_config) plugin.publish_tweet(tweet_item) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems