Sha256: 0225646f7d2c5504878e3c5bd3a9ae14bc411d2b58c6a52002ace20ce393a260
Contents?: true
Size: 767 Bytes
Versions: 4
Compression:
Stored size: 767 Bytes
Contents
require "spec_helper" describe SimControl::BaseEnvironment do describe "#simulate" do it "calls #execute for each seed" do environment = SimControl::BaseEnvironment.new "" scenario = double("scenario") scenario.should_receive(:args).with(seed: 1, results: "") scenario.should_receive(:args).with(seed: 2, results: "") environment.should_receive(:execute).twice environment.simulate(scenario, [1, 2]) end it "the results directory is merged in the scenario" do scenario = double("scenario") scenario.should_receive(:args).with(seed: 1, results: "path") environment = SimControl::BaseEnvironment.new "path" environment.stub(:execute) environment.simulate scenario, [1] end end end
Version data entries
4 entries across 4 versions & 1 rubygems