summaryrefslogtreecommitdiff
path: root/spec/other/open_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/other/open_spec.rb')
-rw-r--r--spec/other/open_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/other/open_spec.rb b/spec/other/open_spec.rb
index 541d87eae3..55b253495d 100644
--- a/spec/other/open_spec.rb
+++ b/spec/other/open_spec.rb
@@ -10,26 +10,26 @@ describe "bundle open" do
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')}"
+ out.should match /bundler_editor #{default_bundle_path('gems', 'rails-2.3.2')}/
end
it "opens the gem with VISUAL as 2nd highest priority" do
bundle "open rails", :env => {"EDITOR" => "echo editor", "VISUAL" => "echo visual", "BUNDLER_EDITOR" => ""}
- out.should == "visual #{default_bundle_path('gems', 'rails-2.3.2')}"
+ out.should match /visual #{default_bundle_path('gems', 'rails-2.3.2')}/
end
it "opens the gem with EDITOR as 3rd highest priority" do
bundle "open rails", :env => {"EDITOR" => "echo editor", "VISUAL" => "", "BUNDLER_EDITOR" => ""}
- out.should == "editor #{default_bundle_path('gems', 'rails-2.3.2')}"
+ out.should match /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"
+ out.should match /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)
+ out.should match /could not find gem 'missing'/i
end
end