aboutsummaryrefslogtreecommitdiffstats
path: root/spec/realworld
diff options
context:
space:
mode:
authorHemant Kumar <gethemant@gmail.com>2013-07-27 02:09:21 +0530
committerHemant Kumar <gethemant@gmail.com>2013-07-29 23:22:56 +0530
commita31e6076211d56e6a5784aadf6018ae234bed8a5 (patch)
treefa3bd6c888f2358724cf840c5eed3df5239c02be /spec/realworld
parent64f201c6ff2498773dd02b80586354623612e1d0 (diff)
downloadbundler-a31e6076211d56e6a5784aadf6018ae234bed8a5.tar.gz
Add separate specs for parallel gem installation
Diffstat (limited to 'spec/realworld')
-rw-r--r--spec/realworld/edgecases_spec.rb11
-rw-r--r--spec/realworld/parallel_install_spec.rb18
2 files changed, 18 insertions, 11 deletions
diff --git a/spec/realworld/edgecases_spec.rb b/spec/realworld/edgecases_spec.rb
index 3e4dc8b7..fd5b607b 100644
--- a/spec/realworld/edgecases_spec.rb
+++ b/spec/realworld/edgecases_spec.rb
@@ -174,15 +174,4 @@ describe "real world edgecases", :realworld => true do
bundle :install, :exitstatus => true
expect(exitstatus).to eq(0)
end
-
- it "installs gems parallely" do
- gemfile <<-G
- source "https://rubygems.org"
-
- gem 'rails'
- G
-
- bundle :install, :jobs => 4
- expect(exitstatus).to eq(0)
- end
end
diff --git a/spec/realworld/parallel_install_spec.rb b/spec/realworld/parallel_install_spec.rb
new file mode 100644
index 00000000..c9771cdf
--- /dev/null
+++ b/spec/realworld/parallel_install_spec.rb
@@ -0,0 +1,18 @@
+require 'spec_helper'
+
+describe "installing dependencies parallely", :realworld => true do
+ it "installs gems parallely" do
+ gemfile <<-G
+ source "https://rubygems.org"
+
+ gem 'rails'
+ G
+
+ bundle :install, :jobs => 4
+ bundle "show rails"
+ expect(out).to match(/rails/)
+
+ bundle "show rack"
+ expect(out).to match(/rack/)
+ end
+end