Permalink
Browse files

Clean up tests that should never have been one-liner

AUGHHGHUGUHUHUHUH
  • Loading branch information...
1 parent c3b93d3 commit b2139a947ced34e43472b498decbd6f0ab68d25f @indirect indirect committed Jan 14, 2011
Showing with 9 additions and 3 deletions.
  1. +9 −3 spec/install/gems/groups_spec.rb
View
12 spec/install/gems/groups_spec.rb
@@ -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

0 comments on commit b2139a9

Please sign in to comment.