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

Version Path
g5_sibling_deployer_engine-0.7.0 spec/workers/sibling_instruction_consumer_spec.rb
g5_sibling_deployer_engine-0.6.3 spec/workers/sibling_instruction_consumer_spec.rb
g5_sibling_deployer_engine-0.6.2 spec/workers/sibling_instruction_consumer_spec.rb
g5_sibling_deployer_engine-0.6.1 spec/workers/sibling_instruction_consumer_spec.rb
g5_sibling_deployer_engine-0.5.0 spec/workers/sibling_instruction_consumer_spec.rb
g5_sibling_deployer_engine-0.4.2 spec/workers/sibling_instruction_consumer_spec.rb
g5_sibling_deployer_engine-0.4.1 spec/workers/sibling_instruction_consumer_spec.rb
g5_sibling_deployer_engine-0.4.0 spec/workers/sibling_instruction_consumer_spec.rb
g5_sibling_deployer_engine-0.3.3 spec/workers/sibling_instruction_consumer_spec.rb
g5_sibling_deployer_engine-0.3.2 spec/workers/sibling_instruction_consumer_spec.rb
g5_sibling_deployer_engine-0.2.6 spec/workers/sibling_instruction_consumer_spec.rb