spec/scenario_spec.rb in SimControl-0.1.4 vs spec/scenario_spec.rb in SimControl-0.1.5
- old
+ new
@@ -11,10 +11,10 @@
expect(scenario.commands).to eq("foo bar")
end
it "generates the complete arguments string" do
scenario = SimControl::Scenario.new "foo", "bar", baz: "1", qux: 2
- expect(scenario.args).to eq("foo bar --baz 1 --qux 2")
+ expect(scenario.args).to eq("--baz 1 --qux 2 foo bar")
end
it "merges options passed to args in the options" do
scenario = SimControl::Scenario.new
expect(scenario.args(seed: 1)).to eq("--seed 1")