Sha256: a9acc2c566230f17dacd517187aee789089dfc576c708f0e6143ad9d6d5aad5f

Contents?: true

Size: 372 Bytes

Versions: 3

Compression:

Stored size: 372 Bytes

Contents

require "spec_helper"

describe SimControl::BaseEnvironment do
  describe "#simulate" do
    it "calls #execute for each seed" do
      scenario = double("scenario")
      scenario.should_receive(:args).with(seed: 1)
      scenario.should_receive(:args).with(seed: 2)
      subject.should_receive(:execute).twice
      subject.simulate(scenario, [1, 2])
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
SimControl-0.1.6 spec/environments/base_environment_spec.rb
SimControl-0.1.5 spec/environments/base_environment_spec.rb
SimControl-0.1.4 spec/environments/base_environment_spec.rb