Sha256: 2f51426a1a18b489e2a3f3820201f3c79211a450dc98f61892037a32e04b5ad3

Contents?: true

Size: 683 Bytes

Versions: 8

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

8 entries across 8 versions & 1 rubygems

Version Path
scorpion-ioc-0.6.2 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-0.6.1 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-0.6.0 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-0.5.23 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-0.5.22 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-0.5.21 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-0.5.20 spec/lib/scorpion/chain_hunter_spec.rb
scorpion-ioc-0.5.19 spec/lib/scorpion/chain_hunter_spec.rb