@@ -67,7 +67,6 @@ class DeploySpecTest < ActiveSupport::TestCase
6767 @spec . stubs ( :gemfile_lock_exists? ) . returns ( true )
6868 command = %(
6969 bundle install
70- --frozen
7170 --jobs 4
7271 --path #{ DeploySpec . bundle_path }
7372 --retry 2
@@ -81,7 +80,6 @@ class DeploySpecTest < ActiveSupport::TestCase
8180 @spec . stubs ( :load_config ) . returns ( 'dependencies' => { 'bundler' => { 'without' => %w[ some custom groups ] } } )
8281 command = %(
8382 bundle install
84- --frozen
8583 --jobs 4
8684 --path #{ DeploySpec . bundle_path }
8785 --retry 2
@@ -90,22 +88,22 @@ class DeploySpecTest < ActiveSupport::TestCase
9088 assert_equal command , @spec . bundle_install . last
9189 end
9290
93- test '#bundle_install has -- frozen option if Gemfile.lock is present' do
91+ test '#bundle_install configures frozen mode if Gemfile.lock is present' do
9492 @spec . stubs ( :load_config ) . returns ( 'dependencies' => { 'bundler' => { 'without' => %w[ some custom groups ] } } )
9593 @spec . stubs ( :gemfile_lock_exists? ) . returns ( true )
96- assert @spec . bundle_install . last . include? ( '-- frozen' )
94+ assert @spec . bundle_install . include? ( 'bundle config set --local frozen true ' )
9795 end
9896
99- test '#bundle_install does not have -- frozen option if Gemfile.lock is not present' do
97+ test '#bundle_install does not configure frozen mode if Gemfile.lock is not present' do
10098 @spec . stubs ( :load_config ) . returns ( 'dependencies' => { 'bundler' => { 'without' => %w[ some custom groups ] } } )
10199 @spec . stubs ( :gemfile_lock_exists? ) . returns ( false )
102- refute @spec . bundle_install . last . include? ( '-- frozen' )
100+ refute @spec . bundle_install . include? ( 'bundle config set --local frozen true ' )
103101 end
104102
105- test '#bundle_install does not have -- frozen if overridden in shipit.yml' do
103+ test '#bundle_install does not configure frozen mode if overridden in shipit.yml' do
106104 @spec . stubs ( :load_config ) . returns ( 'dependencies' => { 'bundler' => { 'frozen' => false } } )
107105 @spec . stubs ( :gemfile_lock_exists? ) . returns ( true )
108- refute @spec . bundle_install . last . include? ( '-- frozen' )
106+ refute @spec . bundle_install . include? ( 'bundle config set --local frozen true ' )
109107 end
110108
111109 test "#provisioning_handler returns `provision.handler` if present" do
0 commit comments