Skip to content

Commit

Permalink
Merge pull request #509 from cucumber/fix-random-build-failure
Browse files Browse the repository at this point in the history
Ensure env is done before inspecting output
  • Loading branch information
mvz authored Nov 10, 2017
2 parents 749bd4a + efec143 commit e7ea113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/aruba/api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -979,15 +979,15 @@ 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

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
Expand Down

0 comments on commit e7ea113

Please sign in to comment.