Sha256: b8fc50e452714cb86ada970e8a4385d5cca0cd8a192ac274a51719a5b509fec0

Contents?: true

Size: 683 Bytes

Versions: 9

Compression:

Stored size: 683 Bytes

Contents

require "spec_helper"

describe Scorpion::ChainHunter do

  describe "#replicate" do

    it "replicates all chained scorpions" do
      scorpion = double( Scorpion::Hunter )
      chained  = Scorpion::ChainHunter.new( scorpion )

      expect( scorpion ).to receive( :replicate )
      chained.replicate
    end

    it "can execute after replication" do
      scorpion   = double( Scorpion::Hunter )
      chained    = Scorpion::ChainHunter.new( scorpion )

      allow( scorpion ).to receive( :replicate ).and_return scorpion
      expect( scorpion ).to receive( :execute )

      replicated = chained.replicate
      replicated.execute double( Scorpion::Hunt )
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
scorpion-ioc-1.0.10 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-1.0.8 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-1.0.7 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-1.0.6 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-1.0.4 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-1.0.3 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-1.0.2 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-1.0.1 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-1.0.0 spec/lib/scorpion/chain_hunter_spec.rb