diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-07-03 12:17:23 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-07-03 12:17:23 -0300 |
commit | 6d4b6a247ef4119f9657293c552ae71459a3665a (patch) | |
tree | dc36a75ec42389bb4d6e81982a2a5b07c12c719e /railties/test/initializer/test_helper.rb | |
parent | cd424f0f320e6657091bee2265933b0f4b9ec65d (diff) | |
parent | a4bdc00fec623f72592e663e6d7830eea0bc6ea4 (diff) | |
download | rails-6d4b6a247ef4119f9657293c552ae71459a3665a.tar.gz rails-6d4b6a247ef4119f9657293c552ae71459a3665a.tar.bz2 rails-6d4b6a247ef4119f9657293c552ae71459a3665a.zip |
Merge commit 'rails/master'
Diffstat (limited to 'railties/test/initializer/test_helper.rb')
-rw-r--r-- | railties/test/initializer/test_helper.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/railties/test/initializer/test_helper.rb b/railties/test/initializer/test_helper.rb new file mode 100644 index 0000000000..ddb03397ab --- /dev/null +++ b/railties/test/initializer/test_helper.rb @@ -0,0 +1,24 @@ +require 'abstract_unit' +require 'active_support/ruby/shim' +require 'initializer' + +RAILS_ROOT.replace File.join(File.dirname(__FILE__), "root") + +module Rails + class << self + attr_accessor :vendor_rails + def vendor_rails?() @vendor_rails end + end +end + +class ActiveSupport::TestCase + def assert_stderr(match) + $stderr = StringIO.new + yield + $stderr.rewind + err = $stderr.read + assert_match match, err + ensure + $stderr = STDERR + end +end
\ No newline at end of file |