From 807c493efe933b1c3fbd2791add295438c6faf2e Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Fri, 28 Apr 2017 20:41:54 +0900 Subject: [PATCH] Add a tweak for Travis where BUNDLE_GEMFILE is preset --- spec/models/agents/shell_command_agent_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/models/agents/shell_command_agent_spec.rb b/spec/models/agents/shell_command_agent_spec.rb index 0690204a..ff554eb1 100644 --- a/spec/models/agents/shell_command_agent_spec.rb +++ b/spec/models/agents/shell_command_agent_spec.rb @@ -134,6 +134,9 @@ describe Agents::ShellCommandAgent do describe "with unbundle" do before do @checker.options[:command] = 'echo $BUNDLE_GEMFILE' + if ENV['TRAVIS'] == 'true' + stub.proxy(Bundler).original_env { |env| env.except('BUNDLE_GEMFILE') } + end end context "unspecified" do