diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-07-02 17:52:46 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-07-02 17:52:46 -0700 |
commit | 378a65a909439ebca909125fdfada23ed89cec63 (patch) | |
tree | a80ce06a30ae2a089202a28b7c59d9ca713c7167 /railties/test/initializer/test_helper.rb | |
parent | d8406f0c20e7809ce797d37c509e2f58f07109d2 (diff) | |
download | rails-378a65a909439ebca909125fdfada23ed89cec63.tar.gz rails-378a65a909439ebca909125fdfada23ed89cec63.tar.bz2 rails-378a65a909439ebca909125fdfada23ed89cec63.zip |
Added tests for the :install_gem_spec_stubs initializer
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 |