Sha256: 121d6f530212cb08d0eb1c756a97e5e4c5d20b1c6cbec68cfd94e4e6ca962119

Contents?: true

Size: 562 Bytes

Versions: 1

Compression:

Stored size: 562 Bytes

Contents

require "spec_helper"

describe SimControl::Scenario do
  it "generates options in -- syntax" do
    scenario = SimControl::Scenario.new foo: "bar", baz: 1
    expect(scenario.options).to eq("--foo bar --baz 1")
  end

  it "generates commands by concatenating" do
    scenario = SimControl::Scenario.new "foo", "bar"
    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")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
SimControl-0.1.3 spec/scenario_spec.rb