Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Clean up tests that should never have been one-liner
Browse files Browse the repository at this point in the history
AUGHHGHUGUHUHUHUH
  • Loading branch information
indirect committed Jan 14, 2011
1 parent c3b93d3 commit b2139a9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions spec/install/gems/groups_spec.rb
Expand Up @@ -45,13 +45,19 @@
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)
out = run <<-RUBY, :emo, :expect_err => true
Bundler.setup(:default)
require 'thin'; puts THIN
RUBY
@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 = run <<-RUBY, :emo
Bundler.setup(:default)
Bundler.setup(:default, :emo)
require 'thin'; puts THIN
RUBY
out.should == '1.0'
end
end
Expand Down

0 comments on commit b2139a9

Please sign in to comment.