Permalink
Browse files

Add tests for the problem described in #932

  • Loading branch information...
1 parent e2eccf8 commit b3ffd2a57ee192b5b6c8306f1abc29451202c360 @indirect indirect committed Jan 14, 2011
Showing with 11 additions and 0 deletions.
  1. +11 −0 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

0 comments on commit b3ffd2a

Please sign in to comment.