spec/circleci/bundle/update/pr_spec.rb in circleci-bundle-update-pr-3.1.0 vs spec/circleci/bundle/update/pr_spec.rb in circleci-bundle-update-pr-4.0.0

- old
+ new

@@ -73,14 +73,10 @@ it { is_expected.to eq 'Gemfile.lock' } end context "when ENV['CIRCLE_WORKING_DIRECTORY'] is relative path" do - let(:workdir_env) do - project_dir = Pathname.getwd.to_s - home_dir = Pathname.new(ENV.fetch('HOME', nil)).to_s - project_dir.sub(home_dir, '~') - end + let(:workdir_env) { Pathname.getwd.to_s.sub(Dir.home, '~') } let(:src_dir) { 'spec/tmp' } around do |e| FileUtils.mkdir_p(src_dir) FileUtils.touch("#{src_dir}/Gemfile.lock")