diff options
author | Thom May <thom@may.lt> | 2018-06-15 15:36:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-15 15:36:22 +0100 |
commit | 51bb7e6f62b5378fb9dd69b0db4d87500437c7f7 (patch) | |
tree | 0db3210f4bba2e2589f98184f95ecf50c2271921 /spec | |
parent | 36da3db58fc5b2cd1b073f0458c6eec335d07d85 (diff) | |
parent | e6c8a07699915d5843772a951b7d9c0bc2c8ca8c (diff) | |
download | mixlib-shellout-51bb7e6f62b5378fb9dd69b0db4d87500437c7f7.tar.gz |
Merge pull request #157 from MsysTechnologiesllc/dh/add_sensitive_feature
[MSYS-830] Added sensitive feature
Diffstat (limited to 'spec')
-rw-r--r-- | spec/mixlib/shellout_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb index 3848c5e..ce4ab43 100644 --- a/spec/mixlib/shellout_spec.rb +++ b/spec/mixlib/shellout_spec.rb @@ -322,11 +322,11 @@ describe Mixlib::ShellOut do context "testing login", :unix_only do subject { shell_cmd } - let (:uid) { 1005 } - let (:gid) { 1002 } - let (:shell) { "/bin/money" } - let (:dir) { "/home/castle" } - let (:path) { "/sbin:/bin:/usr/sbin:/usr/bin" } + let(:uid) { 1005 } + let(:gid) { 1002 } + let(:shell) { "/bin/money" } + let(:dir) { "/home/castle" } + let(:path) { "/sbin:/bin:/usr/sbin:/usr/bin" } before :each do shell_cmd.login = true catbert_user = double("Etc::Passwd", :name => "catbert", :passwd => "x", :uid => 1005, :gid => 1002, :gecos => "Catbert,,,", :dir => "/home/castle", :shell => "/bin/money") @@ -378,7 +378,7 @@ describe Mixlib::ShellOut do # Setting the user should set the env variables describe "#process_environment" do subject { super().process_environment } - it { is_expected.to eq ({ "HOME" => dir, "SHELL" => shell, "USER" => "catbert", "LOGNAME" => "catbert", "PATH" => path, "IFS" => "\t\n" }) } + it { is_expected.to eq({ "HOME" => dir, "SHELL" => shell, "USER" => "catbert", "LOGNAME" => "catbert", "PATH" => path, "IFS" => "\t\n" }) } end # Setting the user with overriding env variables should override context "when adding environment variables" do |