blob: 7b4bb5857796d47d7fb317223971f9848e07a13c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
require 'spec_helper'
describe "updating dependencies parallely", :realworld => true do
before :each do
install_gemfile <<-G
source "https://rubygems.org"
gem 'activesupport', '~> 3.2.12'
gem 'faker', '~> 1.1.2'
G
end
it "installs gems parallely" do
gemfile <<-G
source "https://rubygems.org"
gem 'activesupport', '3.2.13'
gem 'faker', '~> 1.1.2'
G
bundle :update, :jobs => 2, :env => {"DEBUG" => "1"}
(0..1).each {|i| expect(out).to include("#{i}: ") }
bundle "show activesupport"
expect(out).to match(/activesupport-3\.2\.13/)
bundle "show faker"
expect(out).to match(/faker/)
bundle "config jobs"
expect(out).to match(/: "4"/)
end
end
|