Permalink
Browse files

Merge pull request #25652 from prathamesh-sonpatki/rm-boot-rails

Remove unused boot_rails method and it's usage
  • Loading branch information...
guilleiguaran committed Jul 8, 2016
2 parents 8e74f71 + d934278 commit c62ac07be86a747f9b40ad25f60003e4f6022d26
Showing with 3 additions and 46 deletions.
  1. +0 −2 railties/test/application/asset_debugging_test.rb
  2. +0 −1 railties/test/application/assets_test.rb
  3. +0 −1 railties/test/application/configuration/custom_test.rb
  4. +1 −2 railties/test/application/configuration_test.rb
  5. +0 −1 railties/test/application/console_test.rb
  6. +0 −1 railties/test/application/generators_test.rb
  7. +0 −1 railties/test/application/initializers/frameworks_test.rb
  8. +0 −1 railties/test/application/initializers/hooks_test.rb
  9. +0 −1 railties/test/application/initializers/i18n_test.rb
  10. +0 −1 railties/test/application/initializers/load_path_test.rb
  11. +0 −1 railties/test/application/initializers/notifications_test.rb
  12. +0 −1 railties/test/application/integration_test_case_test.rb
  13. +0 −1 railties/test/application/loading_test.rb
  14. +0 −1 railties/test/application/mailer_previews_test.rb
  15. +0 −1 railties/test/application/middleware/cache_test.rb
  16. +0 −1 railties/test/application/middleware/cookies_test.rb
  17. +0 −1 railties/test/application/middleware/exceptions_test.rb
  18. +0 −1 railties/test/application/middleware/sendfile_test.rb
  19. +0 −1 railties/test/application/middleware/session_test.rb
  20. +0 −1 railties/test/application/middleware_test.rb
  21. +0 −1 railties/test/application/multiple_applications_test.rb
  22. +0 −1 railties/test/application/paths_test.rb
  23. +0 −1 railties/test/application/rackup_test.rb
  24. +0 −1 railties/test/application/rake/dbs_test.rb
  25. +0 −1 railties/test/application/rake/framework_test.rb
  26. +0 −1 railties/test/application/rake/migrations_test.rb
  27. +0 −1 railties/test/application/rake/notes_test.rb
  28. +0 −1 railties/test/application/rake/restart_test.rb
  29. +0 −1 railties/test/application/rake_test.rb
  30. +0 −1 railties/test/application/rendering_test.rb
  31. +0 −1 railties/test/application/routing_test.rb
  32. +2 −3 railties/test/application/runner_test.rb
  33. +0 −1 railties/test/application/test_test.rb
  34. +0 −2 railties/test/application/url_generation_test.rb
  35. +0 −3 railties/test/isolation/abstract_unit.rb
  36. +0 −1 railties/test/railties/engine_test.rb
  37. +0 −2 railties/test/railties/mounted_engine_test.rb
  38. +0 −1 railties/test/railties/railtie_test.rb
@@ -28,8 +28,6 @@ class PostsController < ActionController::Base
RUBY
ENV["RAILS_ENV"] = "production"
boot_rails
end
def teardown
@@ -9,7 +9,6 @@ class AssetsTest < ActiveSupport::TestCase
def setup
build_app(initializers: true)
boot_rails
end
def teardown
@@ -5,7 +5,6 @@ module ConfigurationTests
class CustomTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
FileUtils.rm_rf("#{app_path}/config/environments")
end
@@ -51,7 +51,6 @@ def app(env = 'development')
def setup
build_app
boot_rails
supress_default_config
end
@@ -570,7 +569,7 @@ def index
app_file 'config/secrets.yml', <<-YAML
shared:
api_key: 3b7cd727
development:
api_key: abc12345
YAML
@@ -5,7 +5,6 @@ class ConsoleTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
end
def teardown
@@ -6,7 +6,6 @@ class GeneratorsTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
end
def teardown
@@ -6,7 +6,6 @@ class FrameworksTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
FileUtils.rm_rf "#{app_path}/config/environments"
end
@@ -6,7 +6,6 @@ class HooksTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
FileUtils.rm_rf "#{app_path}/config/environments"
end
@@ -6,7 +6,6 @@ class I18nTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
FileUtils.rm_rf "#{app_path}/config/environments"
require "rails/all"
end
@@ -6,7 +6,6 @@ class LoadPathTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
FileUtils.rm_rf "#{app_path}/config/environments"
end
@@ -6,7 +6,6 @@ class NotificationsTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
end
def teardown
@@ -6,7 +6,6 @@ class IntegrationTestCaseTest < ActiveSupport::TestCase
setup do
build_app
boot_rails
end
teardown do
@@ -5,7 +5,6 @@ class LoadingTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
end
def teardown
@@ -9,7 +9,6 @@ class MailerPreviewsTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
end
def teardown
@@ -6,7 +6,6 @@ class CacheTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
require 'rack/test'
extend Rack::Test::Methods
end
@@ -10,7 +10,6 @@ def new_app
def setup
build_app
boot_rails
FileUtils.rm_rf("#{app_path}/config/environments")
end
@@ -8,7 +8,6 @@ class MiddlewareExceptionsTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
end
def teardown
@@ -6,7 +6,6 @@ class SendfileTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
FileUtils.rm_rf "#{app_path}/config/environments"
end
@@ -8,7 +8,6 @@ class MiddlewareSessionTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
FileUtils.rm_rf "#{app_path}/config/environments"
end
@@ -6,7 +6,6 @@ class MiddlewareTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
FileUtils.rm_rf "#{app_path}/config/environments"
end
@@ -6,7 +6,6 @@ class MultipleApplicationsTest < ActiveSupport::TestCase
def setup
build_app(initializers: true)
boot_rails
require "#{rails_root}/config/environment"
Rails.application.config.some_setting = 'something_or_other'
end
@@ -6,7 +6,6 @@ class PathsTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
FileUtils.rm_rf("#{app_path}/config/environments")
app_file "config/environments/development.rb", ""
add_to_config <<-RUBY
@@ -12,7 +12,6 @@ def rackup
def setup
build_app
boot_rails
end
def teardown
@@ -8,7 +8,6 @@ class RakeDbsTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
FileUtils.rm_rf("#{app_path}/config/environments")
end
@@ -8,7 +8,6 @@ class FrameworkTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
FileUtils.rm_rf("#{app_path}/config/environments")
end
@@ -5,7 +5,6 @@ module RakeTests
class RakeMigrationsTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
FileUtils.rm_rf("#{app_path}/config/environments")
end
@@ -161,7 +161,6 @@ def load_tasks
end
def boot_rails
super
require "#{app_path}/config/environment"
end
end
@@ -7,7 +7,6 @@ class RakeRestartTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
end
def teardown
@@ -7,7 +7,6 @@ class RakeTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
end
def teardown
@@ -8,7 +8,6 @@ class RoutingTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
end
def teardown
@@ -8,7 +8,6 @@ class RoutingTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
end
def teardown
@@ -8,7 +8,6 @@ class RunnerTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
# Lets create a model so we have something to play with
app_file "app/models/user.rb", <<-MODEL
@@ -76,12 +75,12 @@ def test_default_environment
def test_runner_detects_syntax_errors
Dir.chdir(app_path) { `bin/rails runner "puts 'hello world" 2>&1` }
refute $?.success?
refute $?.success?
end
def test_runner_detects_bad_script_name
Dir.chdir(app_path) { `bin/rails runner "iuiqwiourowe" 2>&1` }
refute $?.success?
refute $?.success?
end
def test_environment_with_rails_env
@@ -6,7 +6,6 @@ class TestTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
end
def teardown
@@ -9,7 +9,6 @@ def app
end
test "it works" do
boot_rails
require "rails"
require "action_controller/railtie"
require "action_view/railtie"
@@ -44,7 +43,6 @@ def index
end
def test_routes_know_the_relative_root
boot_rails
require "rails"
require "action_controller/railtie"
require "action_view/railtie"
@@ -310,9 +310,6 @@ def use_frameworks(arr)
$:.reject! {|path| path =~ %r'/(#{to_remove.join('|')})/' }
end
def boot_rails
end
end
end
@@ -28,7 +28,6 @@ def teardown
end
def boot_rails
super
require "#{app_path}/config/environment"
end
@@ -179,8 +179,6 @@ def application_polymorphic_path
end
end
RUBY
boot_rails
end
def teardown
@@ -6,7 +6,6 @@ class RailtieTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
FileUtils.rm_rf("#{app_path}/config/environments")
require "rails/all"
end

0 comments on commit c62ac07

Please sign in to comment.