summaryrefslogtreecommitdiff
path: root/spec/mixlib
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mixlib')
-rw-r--r--spec/mixlib/shellout_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb
index df9bbbe..7e93054 100644
--- a/spec/mixlib/shellout_spec.rb
+++ b/spec/mixlib/shellout_spec.rb
@@ -477,6 +477,14 @@ describe Mixlib::ShellOut do
end
end
+ context 'when setting environments with symbols' do
+ let(:options) { { :environment => { SYMBOL: 'cymbal' } } }
+
+ it "should also set the enviroment" do
+ expect(shell_cmd.environment).to eql({'SYMBOL' => 'cymbal'})
+ end
+ end
+
context 'when :environment is set to nil' do
let(:options) { { :environment => nil } }