Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add tests for the problem described in #932

  • Loading branch information...
commit b3ffd2a57ee192b5b6c8306f1abc29451202c360 1 parent e2eccf8
@indirect indirect authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 spec/install/gems/groups_spec.rb
View
11 spec/install/gems/groups_spec.rb
@@ -43,6 +43,17 @@
out = run("require 'thin'; puts THIN")
out.should == '1.0'
end
+
+ it "removes old groups when new groups are set up" do
+ out = run("Bundler.setup(:default); require 'thin'; puts THIN", :emo, :expect_err => true)
+ @err.should =~ /no such file to load -- thin/i
+ end
+
+ it "sets up old groups when they have previously been removed" do
+ out = run("Bundler.setup(:default); Bundler.setup(:default, :emo);" +
+ "require 'thin'; puts THIN", :emo)
+ out.should == '1.0'
+ end
end
describe "installing --without" do
Please sign in to comment.
Something went wrong with that request. Please try again.