summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-26 09:09:43 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2018-10-03 08:48:56 -0300
commitd7365389a65b0b8ebdd150f84c55d792e6e7e2de (patch)
treefd5d52ccdf88a95b13bf646be576ae0e52e84dd1
parent929121fa4cac9b306971fa7653b12cce92a62e34 (diff)
downloadbundler-d7365389a65b0b8ebdd150f84c55d792e6e7e2de.tar.gz
Reuse `install_gemfile` helper
-rw-r--r--spec/commands/config_spec.rb20
-rw-r--r--spec/install/gemfile/git_spec.rb3
2 files changed, 6 insertions, 17 deletions
diff --git a/spec/commands/config_spec.rb b/spec/commands/config_spec.rb
index 448b312f37..61734ef005 100644
--- a/spec/commands/config_spec.rb
+++ b/spec/commands/config_spec.rb
@@ -67,12 +67,10 @@ RSpec.describe ".bundle/config" do
describe "global" do
before(:each) do
- gemfile <<-G
+ install_gemfile <<-G
source "file://#{gem_repo1}"
gem "rack", "1.0.0"
G
-
- bundle :install
end
it "is the default" do
@@ -163,12 +161,10 @@ RSpec.describe ".bundle/config" do
describe "local" do
before(:each) do
- gemfile <<-G
+ install_gemfile <<-G
source "file://#{gem_repo1}"
gem "rack", "1.0.0"
G
-
- bundle :install
end
it "can also be set explicitly" do
@@ -223,12 +219,10 @@ RSpec.describe ".bundle/config" do
describe "env" do
before(:each) do
- gemfile <<-G
+ install_gemfile <<-G
source "file://#{gem_repo1}"
gem "rack", "1.0.0"
G
-
- bundle :install
end
it "can set boolean properties via the environment" do
@@ -298,12 +292,10 @@ RSpec.describe ".bundle/config" do
describe "gem mirrors" do
before(:each) do
- gemfile <<-G
+ install_gemfile <<-G
source "file://#{gem_repo1}"
gem "rack", "1.0.0"
G
-
- bundle :install
end
it "configures mirrors using keys with `mirror.`" do
@@ -367,12 +359,10 @@ E
describe "very long lines" do
before(:each) do
- gemfile <<-G
+ install_gemfile <<-G
source "file://#{gem_repo1}"
gem "rack", "1.0.0"
G
-
- bundle :install
end
let(:long_string) do
diff --git a/spec/install/gemfile/git_spec.rb b/spec/install/gemfile/git_spec.rb
index 7f7a1ae4c9..edfda90d93 100644
--- a/spec/install/gemfile/git_spec.rb
+++ b/spec/install/gemfile/git_spec.rb
@@ -922,12 +922,11 @@ RSpec.describe "bundle install with git sources" do
build_git "foo", :path => lib_path("nested")
build_git "bar", :path => lib_path("nested")
- gemfile <<-G
+ install_gemfile <<-G
gem "foo", :git => "#{lib_path("nested")}"
gem "bar", :git => "#{lib_path("nested")}"
G
- bundle "install"
expect(File.read(bundled_app("Gemfile.lock")).scan("GIT").size).to eq(1)
end