aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorYehuda Katz and Carl Lerche <wycats@gmail.com>2009-04-06 12:35:24 -0700
committerYehuda Katz and Carl Lerche <wycats@gmail.com>2009-04-06 12:35:24 -0700
commit4d3cd9b43f6b7425ca3eee303773d2221e8af38f (patch)
treebcec21b06b1940617eaf9f8682523cd6526ba47c /actionpack
parenta501638e9dcf55e45613637c52e4169b6324f285 (diff)
downloadrails-4d3cd9b43f6b7425ca3eee303773d2221e8af38f.tar.gz
rails-4d3cd9b43f6b7425ca3eee303773d2221e8af38f.tar.bz2
rails-4d3cd9b43f6b7425ca3eee303773d2221e8af38f.zip
Changes necessary to run the T::U tests with the rspec runner
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/new_base/test_helper.rb21
1 files changed, 15 insertions, 6 deletions
diff --git a/actionpack/test/new_base/test_helper.rb b/actionpack/test/new_base/test_helper.rb
index e33b4239ad..5ed4dd3f12 100644
--- a/actionpack/test/new_base/test_helper.rb
+++ b/actionpack/test/new_base/test_helper.rb
@@ -67,12 +67,21 @@ class Rack::TestCase < ActiveSupport::TestCase
ActionController::Routing.use_controllers!(controllers)
end
- def self.describe(text)
- class_eval <<-RUBY_EVAL
- def self.name
- "#{text}"
- end
- RUBY_EVAL
+ unless method_defined?(:describe)
+ def self.describe(text)
+ class_eval <<-RUBY_EVAL
+ def self.name
+ "#{text}"
+ end
+ RUBY_EVAL
+ end
+ end
+
+ if defined?(Spec)
+ class << self
+ undef test
+ alias_method :test, :it
+ end
end
def app