Sha256: 8d17850eef45e2cf2028ca37208509dc26e5ad9ef7f105d99b900da3481b1997
Contents?: true
Size: 628 Bytes
Versions: 3
Compression:
Stored size: 628 Bytes
Contents
require 'spec_helper' describe "Cmds ENV vars" do it "sets basic (path-like) string ENV var" do cmd = Cmds::Cmd.new 'echo "${BLAH}"', env: {BLAH: "x:y:z"} expect(cmd.chomp!).to eq "x:y:z" end it "sets a string with spaces in it correctly" do cmd = Cmds::Cmd.new 'echo "${BLAH}"', env: {BLAH: "hey there"} expect(cmd.chomp!).to eq "hey there" end it "accepts string keys" do cmd = Cmds::Cmd.new 'echo "${BLAH}"', env: { 'BLAH' => [ "/usr/local/bin", "/usr/bin", "/bin" ].join(':') } expect(cmd.chomp!).to eq "/usr/local/bin:/usr/bin:/bin" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cmds-0.1.3 | spec/cmds/env_spec.rb |
cmds-0.1.2 | spec/cmds/env_spec.rb |
cmds-0.1.1 | spec/cmds/env_spec.rb |