spec/scenario_spec.rb in SimControl-0.1.3 vs spec/scenario_spec.rb in SimControl-0.1.4
- old
+ new
@@ -13,6 +13,11 @@
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")
end
+
+ it "merges options passed to args in the options" do
+ scenario = SimControl::Scenario.new
+ expect(scenario.args(seed: 1)).to eq("--seed 1")
+ end
end