Sha256: e972b4cc4339156b3187d1290d547ac5951d267de10a0e38c5bd0f4462d6cb32
Contents?: true
Size: 726 Bytes
Versions: 8
Compression:
Stored size: 726 Bytes
Contents
require 'spec_helper' module Weeter module Plugins describe SubscriptionPlugin do describe "#get_initial_filters" do it "should delegate to the configured plugin" do client_app_config = Hashie::Mash.new(:subscription_plugin => :http) mock_plugin = mock(Subscription::Http) Subscription::Http.should_receive(:new).and_return(mock_plugin) mock_plugin.should_receive(:get_initial_filters).and_yield([{'foo' => 'bar'}]) plugin = SubscriptionPlugin.new(client_app_config) plugin.get_initial_filters do |filter_params| filter_params.should == [{'foo' => 'bar'}] end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems