diff options
Diffstat (limited to 'spec/update/git_spec.rb')
-rw-r--r-- | spec/update/git_spec.rb | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/spec/update/git_spec.rb b/spec/update/git_spec.rb index 752033c842..58cf18bba0 100644 --- a/spec/update/git_spec.rb +++ b/spec/update/git_spec.rb @@ -131,10 +131,8 @@ RSpec.describe "bundle update" do s.add_dependency "submodule" end - Dir.chdir(lib_path("has_submodule-1.0")) do - sys_exec "git submodule add #{lib_path("submodule-1.0")} submodule-1.0" - `git commit -m "submodulator"` - end + sys_exec "git submodule add #{lib_path("submodule-1.0")} submodule-1.0", :dir => lib_path("has_submodule-1.0") + sys_exec "git commit -m \"submodulator\"", :dir => lib_path("has_submodule-1.0") end it "it unlocks the source when submodules are added to a git source" do @@ -259,14 +257,12 @@ RSpec.describe "bundle update" do bundle "update --source foo" - in_app_root do - run <<-RUBY - require 'foo' - puts "WIN" if defined?(FOO_PREV_REF) - RUBY + run <<-RUBY + require 'foo' + puts "WIN" if defined?(FOO_PREV_REF) + RUBY - expect(out).to eq("WIN") - end + expect(out).to eq("WIN") end it "unlocks gems that were originally pulled in by the source" do |