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