Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove unneeded files from the railties test directory

  • Loading branch information...
commit d1a63b15e329a141e0e4cc3b01d6f348d1c25c0a 1 parent 6b08644
Carl Lerche authored
0  railties/test/initializer/root/app/controllers/.keep
View
No changes.
0  railties/test/initializer/root/app/helpers/.keep
View
No changes.
0  railties/test/initializer/root/app/metal/.keep
View
No changes.
0  railties/test/initializer/root/app/models/.keep
View
No changes.
0  railties/test/initializer/root/app/views/.keep
View
No changes.
4 railties/test/initializer/root/config/database.yml
View
@@ -1,4 +0,0 @@
-development:
- adapter: sqlite3
- database: db/railties.db
- timeout: 5000
0  railties/test/initializer/root/config/environments/.keep
View
No changes.
0  railties/test/initializer/root/config/locales/.keep
View
No changes.
0  railties/test/initializer/root/config/routes.rb
View
No changes.
0  railties/test/initializer/root/lib/.keep
View
No changes.
0  railties/test/initializer/root/tmp/.keep
View
No changes.
0  railties/test/initializer/root/tmp/cache/.keep
View
No changes.
0  railties/test/initializer/root/vendor/.keep
View
No changes.
52 railties/test/initializer/test_helper.rb
View
@@ -1,52 +0,0 @@
-# This is a test helper file that simulates a rails application being
-# boot from scratch in vendored mode. This file should really only be
-# required in test cases that use the isolation helper so that requires
-# can be reset correctly.
-RAILS_ROOT = "#{File.dirname(__FILE__)}/root"
-RAILS_FRAMEWORK_ROOT = File.expand_path("#{File.dirname(__FILE__)}/../../..")
-
-require 'rubygems'
-gem 'rack', '~> 1.0.0'
-
-require "test/unit"
-# We are purposely avoiding adding things to the load path to catch bugs that only happen in the genuine article
-require "#{RAILS_FRAMEWORK_ROOT}/activesupport/lib/active_support/testing/isolation"
-require "#{RAILS_FRAMEWORK_ROOT}/activesupport/lib/active_support/testing/declarative"
-
-class Test::Unit::TestCase
- extend ActiveSupport::Testing::Declarative
-
- def assert_stderr(match)
- $stderr = StringIO.new
- yield
- $stderr.rewind
- err = $stderr.read
- assert_match match, err
- ensure
- $stderr = STDERR
- end
-end
-
-# Fake boot.rb
-module Rails
- class << self
- attr_accessor :vendor_rails
-
- def vendor_rails?
- @vendor_rails
- end
-
- def boot!
- # Require the initializer
- $:.unshift "#{RAILS_FRAMEWORK_ROOT}/railties/lib"
- require "rails/initializer"
- # Run the initializer the same way boot.rb does it
- Rails::Initializer.run(:install_gem_spec_stubs)
- Rails::GemDependency.add_frozen_gem_path
- Rails::Initializer.run(:set_load_path)
- end
- end
-end
-
-# All that for this:
-Rails.boot!
Please sign in to comment.
Something went wrong with that request. Please try again.