diff --git a/spec/aruba/api_spec.rb b/spec/aruba/api_spec.rb index 962d476fe..7329215fe 100644 --- a/spec/aruba/api_spec.rb +++ b/spec/aruba/api_spec.rb @@ -979,7 +979,7 @@ def root_directory it "set environment variable" do @aruba.set_environment_variable 'LONG_LONG_ENV_VARIABLE', 'true' - @aruba.run_command "env" + @aruba.run_command_and_stop "env" expect(@aruba.last_command_started.output) .to include("LONG_LONG_ENV_VARIABLE=true") end @@ -987,7 +987,7 @@ def root_directory it "overwrites environment variable" do @aruba.set_environment_variable 'LONG_LONG_ENV_VARIABLE', 'true' @aruba.set_environment_variable 'LONG_LONG_ENV_VARIABLE', 'false' - @aruba.run_command "env" + @aruba.run_command_and_stop "env" expect(@aruba.last_command_started.output) .to include("LONG_LONG_ENV_VARIABLE=false") end