summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-10-19 17:25:49 -0700
committerAndre Arko <andre@arko.net>2013-10-19 17:29:19 -0700
commit53a063d7b461367e72f56672f30835a19b5e1be3 (patch)
tree56d13253e047d27d028e938ebc89409d906adbb6
parent00afb3cedc7046c9c26f5666099ebaa60f3185db (diff)
downloadbundler-53a063d7b461367e72f56672f30835a19b5e1be3.tar.gz
move --gemfile test to gemfile spec
-rw-r--r--spec/install/gemfile_spec.rb14
-rw-r--r--spec/install/gems/simple_case_spec.rb14
2 files changed, 14 insertions, 14 deletions
diff --git a/spec/install/gemfile_spec.rb b/spec/install/gemfile_spec.rb
index 497aab065d..3b0383f052 100644
--- a/spec/install/gemfile_spec.rb
+++ b/spec/install/gemfile_spec.rb
@@ -12,6 +12,20 @@ describe "bundle install" do
end
end
+ context "with --gemfile" do
+ it "finds the gemfile" do
+ gemfile bundled_app("NotGemfile"), <<-G
+ source "file://#{gem_repo1}"
+ gem 'rack'
+ G
+
+ bundle :install, :gemfile => bundled_app("NotGemfile")
+
+ ENV['BUNDLE_GEMFILE'] = "NotGemfile"
+ should_be_installed "rack 1.0.0"
+ end
+ end
+
context "with deprecated features" do
before :each do
in_app_root
diff --git a/spec/install/gems/simple_case_spec.rb b/spec/install/gems/simple_case_spec.rb
index 134974958b..322dbdf4f8 100644
--- a/spec/install/gems/simple_case_spec.rb
+++ b/spec/install/gems/simple_case_spec.rb
@@ -362,20 +362,6 @@ describe "bundle install with gem sources" do
end
end
- describe "when passing in a Gemfile via --gemfile" do
- it "finds the gemfile" do
- gemfile bundled_app("NotGemfile"), <<-G
- source "file://#{gem_repo1}"
- gem 'rack'
- G
-
- bundle :install, :gemfile => bundled_app("NotGemfile")
-
- ENV['BUNDLE_GEMFILE'] = "NotGemfile"
- should_be_installed "rack 1.0.0"
- end
- end
-
describe "when requesting a quiet install via --quiet" do
it "should be quiet if there are no warnings" do
gemfile <<-G