spec/lib/dispatch-rider/publisher_spec.rb in dispatch-rider-1.9.0 vs spec/lib/dispatch-rider/publisher_spec.rb in dispatch-rider-2.0.0

- old
+ new

@@ -43,11 +43,11 @@ describe "#register_notification_service" do it "registers a notification service" do subject.register_notification_service(:aws_sns) result = subject.notification_service_registrar.fetch(:aws_sns) - expect(result.notifier).to respond_to(:topics) + expect(result.notifier).to respond_to(:list_topics) expect(result.channel_registrar.store).to be_empty end it "returns the publisher" do expect(subject.register_notification_service(:aws_sns)).to eq(subject) @@ -144,9 +144,10 @@ } ) } before { DispatchRider.config.callbacks.for(:publish) << publish_callback } + after { DispatchRider.config.callbacks.for(:publish).delete publish_callback } example do expect(publish_callback).to receive(:call).with any_args, # first argument is the inner job destinations: [:fs_foo],