From 10c70a37de2a1742b1ee162300bd63cb0f8bb094 Mon Sep 17 00:00:00 2001 From: Simon Rozet Date: Wed, 3 Feb 2010 02:13:19 +0100 Subject: [PATCH] Get rid of needless require "rubygems" --- spec/integration/mechanize/sample_app.rb | 1 - spec/integration/mechanize/spec/spec_helper.rb | 1 - spec/integration/merb/spec/spec_helper.rb | 2 -- spec/integration/rack/app.rb | 1 - spec/integration/rack/test/helper.rb | 1 - spec/integration/sinatra/classic_app.rb | 1 - spec/integration/sinatra/modular_app.rb | 1 - spec/integration/sinatra/test/test_helper.rb | 1 - spec/spec_helper.rb | 1 - 9 files changed, 10 deletions(-) diff --git a/spec/integration/mechanize/sample_app.rb b/spec/integration/mechanize/sample_app.rb index 13a4b78..853d1b4 100644 --- a/spec/integration/mechanize/sample_app.rb +++ b/spec/integration/mechanize/sample_app.rb @@ -1,4 +1,3 @@ -require "rubygems" require "sinatra/base" class SampleApp < Sinatra::Default diff --git a/spec/integration/mechanize/spec/spec_helper.rb b/spec/integration/mechanize/spec/spec_helper.rb index 95ad24a..71c80da 100644 --- a/spec/integration/mechanize/spec/spec_helper.rb +++ b/spec/integration/mechanize/spec/spec_helper.rb @@ -1,4 +1,3 @@ -require "rubygems" require "spec" $LOAD_PATH.unshift File.dirname(__FILE__) + "/../../../../lib" diff --git a/spec/integration/merb/spec/spec_helper.rb b/spec/integration/merb/spec/spec_helper.rb index 407dd90..717a0fa 100644 --- a/spec/integration/merb/spec/spec_helper.rb +++ b/spec/integration/merb/spec/spec_helper.rb @@ -1,5 +1,3 @@ -require "rubygems" - $LOAD_PATH.unshift File.dirname(__FILE__) + "/../../../../lib" # Add the local gems dir if found within the app root; any dependencies loaded diff --git a/spec/integration/rack/app.rb b/spec/integration/rack/app.rb index 0e863a4..24d3a4f 100644 --- a/spec/integration/rack/app.rb +++ b/spec/integration/rack/app.rb @@ -1,4 +1,3 @@ -require "rubygems" require "sinatra/base" class RackApp < Sinatra::Base diff --git a/spec/integration/rack/test/helper.rb b/spec/integration/rack/test/helper.rb index 9959b35..1f1fede 100644 --- a/spec/integration/rack/test/helper.rb +++ b/spec/integration/rack/test/helper.rb @@ -1,4 +1,3 @@ -require "rubygems" require "test/unit" require "rack/test" # require "redgreen" diff --git a/spec/integration/sinatra/classic_app.rb b/spec/integration/sinatra/classic_app.rb index 41ed968..0937042 100644 --- a/spec/integration/sinatra/classic_app.rb +++ b/spec/integration/sinatra/classic_app.rb @@ -1,4 +1,3 @@ -require "rubygems" require "sinatra" use_in_file_templates! diff --git a/spec/integration/sinatra/modular_app.rb b/spec/integration/sinatra/modular_app.rb index 50b2754..8f5b0f5 100644 --- a/spec/integration/sinatra/modular_app.rb +++ b/spec/integration/sinatra/modular_app.rb @@ -1,4 +1,3 @@ -require "rubygems" require "sinatra/base" class MyModularApp < Sinatra::Default diff --git a/spec/integration/sinatra/test/test_helper.rb b/spec/integration/sinatra/test/test_helper.rb index 7e44db6..2e5bcae 100644 --- a/spec/integration/sinatra/test/test_helper.rb +++ b/spec/integration/sinatra/test/test_helper.rb @@ -1,4 +1,3 @@ -require "rubygems" require "test/unit" # require "redgreen" diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b30de1c..c6d9972 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,3 @@ -require "rubygems" require "test/unit" require "spec"