Skip to content

Commit

Permalink
Fix specs on platforms without native PWD in env
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Jun 10, 2019
1 parent 131df37 commit 3522167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/aruba/api/core_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

it 'sets directory environment in the passed block' do
@aruba.create_directory @directory_name
old_pwd = ENV['PWD']
old_pwd = Dir.pwd
full_path = File.expand_path(@directory_path)
@aruba.cd @directory_name do
expect(ENV['PWD']).to eq full_path
Expand Down Expand Up @@ -120,7 +120,7 @@
end

it 'sets directory environment in the passed block' do
old_pwd = ENV['PWD']
old_pwd = Dir.pwd
@aruba.in_current_directory do
expect(ENV['PWD']).to eq full_path
expect(ENV['OLDPWD']).to eq old_pwd
Expand Down

0 comments on commit 3522167

Please sign in to comment.