test/services/publisher_test.rb in propono-1.3.0 vs test/services/publisher_test.rb in propono-1.4.0
- old
+ new
@@ -37,10 +37,11 @@
end
def test_publish_logs
publisher = Publisher.new("foo", "bar")
publisher.instance_variable_set(:@id, 'abc')
- Propono.config.logger.expects(:info).with() {|x| x =~ /^Propono \[abc\]: Publishing bar to foo via sns.*/}
+ publisher.stubs(:publish_via_sns)
+ Propono.config.logger.expects(:info).with {|x| x =~ /^Propono \[abc\]: Publishing bar to foo via sns.*/}
publisher.send(:publish)
end
def test_publish_proxies_to_sns
publisher = Publisher.new('topic', 'message')