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