Sha256: db1b8355cbeb0e833dfc6839573c477c4b11d74cbc606cbf936d84efc2247e04
Contents?: true
Size: 507 Bytes
Versions: 11
Compression:
Stored size: 507 Bytes
Contents
require "spec_helper" describe SiblingInstructionConsumer do describe ".perform" do it "consumes entry feed" do Sibling::Instruction.stub(:consume_feed) Sibling::Instruction.should_receive(:consume_feed).once SiblingInstructionConsumer.perform end it "does not swallow errors" do Sibling::Instruction.stub(:consume_feed).and_raise(StandardError.new("Foo")) lambda { SiblingInstructionConsumer.perform }.should raise_error(StandardError, "Foo") end end end
Version data entries
11 entries across 11 versions & 1 rubygems