aboutsummaryrefslogtreecommitdiffstats
path: root/spec/other/open_spec.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-07-06 14:48:28 -0700
committerAndre Arko <andre@arko.net>2010-07-06 14:54:50 -0700
commit05222b1f327e95f1b32fd6187855b850eeb9841b (patch)
treeacb8648f14c729c76c8b4f6fc196fef85fcbf884 /spec/other/open_spec.rb
parent485ec3339d7c44bae222432bf4dab13ac2b0e66e (diff)
downloadbundler-05222b1f327e95f1b32fd6187855b850eeb9841b.tar.gz
Remove old .bundle/environment.rb while locking
Closes #408
Diffstat (limited to 'spec/other/open_spec.rb')
-rw-r--r--spec/other/open_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/other/open_spec.rb b/spec/other/open_spec.rb
index 79a41fba..d4404821 100644
--- a/spec/other/open_spec.rb
+++ b/spec/other/open_spec.rb
@@ -7,7 +7,7 @@ describe "bundle open" do
gem "rails"
G
end
-
+
it "opens the gem with BUNDLER_EDITOR as highest priority" do
bundle "open rails", :env => {"EDITOR" => "echo editor", "VISUAL" => "echo visual", "BUNDLER_EDITOR" => "echo bundler_editor"}
out.should == "bundler_editor #{default_bundle_path('gems', 'rails-2.3.2')}"
@@ -22,12 +22,12 @@ describe "bundle open" do
bundle "open rails", :env => {"EDITOR" => "echo editor", "VISUAL" => "", "BUNDLER_EDITOR" => ""}
out.should == "editor #{default_bundle_path('gems', 'rails-2.3.2')}"
end
-
+
it "complains if no EDITOR is set" do
bundle "open rails", :env => {"EDITOR" => "", "VISUAL" => "", "BUNDLER_EDITOR" => ""}
out.should == "To open a bundled gem, set $EDITOR or $BUNDLER_EDITOR"
end
-
+
it "complains if gem not in bundle" do
bundle "open missing", :env => {"EDITOR" => "echo editor", "VISUAL" => "", "BUNDLER_EDITOR" => ""}
out.should match(/could not find gem 'missing'/i)