spec/cany/recipes/bundler_spec.rb in cany-0.5.3 vs spec/cany/recipes/bundler_spec.rb in cany-0.5.4
- old
+ new
@@ -38,11 +38,11 @@
use :bundler
end
recipe.inner = double('recipe')
expect(recipe.inner).to receive(:build)
end
- let(:bundler_args) { %(bundle install --deployment --without development test) }
+ let(:bundler_args) { %(bundle install --deployment --retry 3 --without development test) }
it 'should ignore development and test' do
@second = false
expect(recipe).to receive(:ruby_bin) do |*args|
if @second then
expect(args.flatten).to eq bundler_args
@@ -62,11 +62,11 @@
end
end
recipe.inner = double('recipe')
expect(recipe.inner).to receive(:build)
end
- let(:bundler_args) { %w(bundle install --deployment --without development test integration) }
+ let(:bundler_args) { %w(bundle install --deployment --retry 3 --without development test integration) }
it 'should ignore development, test and integration' do
@second = false
expect(recipe).to receive(:ruby_bin).twice do |*args|
if @second then
expect(args.flatten).to eq bundler_args
@@ -87,10 +87,10 @@
end
end
recipe.inner = double('recipe')
expect(recipe.inner).to receive(:build)
end
- let(:bundler_args) { %w(bundle install --deployment --without test) }
+ let(:bundler_args) { %w(bundle install --deployment --retry 3 --without test) }
it 'should ignore only left over one' do
@second = false
expect(recipe).to receive(:ruby_bin).twice do |*args|
if @second then
expect(args.flatten).to eq bundler_args