Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion actionpack/lib/action_controller/test_case.rb
Expand Up @@ -503,7 +503,6 @@ def process(action, method: "GET", params: nil, session: nil, body: nil, flash:
process_controller_response(action, cookies, xhr)
end


def controller_class_name
@controller.class.anonymous? ? "anonymous" : @controller.class.controller_path
end
Expand Down
1 change: 0 additions & 1 deletion actionpack/lib/action_dispatch/journey/gtg/builder.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true


require "action_dispatch/journey/gtg/transition_table"

module ActionDispatch
Expand Down
1 change: 0 additions & 1 deletion actionpack/test/controller/test_case_test.rb
Expand Up @@ -247,7 +247,6 @@ def to_param
assert_equal JSON.parse(@response.body)["foo"], "bar"
end


def test_body_stream
params = Hash[:page, { name: "page name" }, "some key", 123]

Expand Down
1 change: 0 additions & 1 deletion actionview/lib/action_view/renderer/collection_renderer.rb
Expand Up @@ -106,7 +106,6 @@ def render_collection_with_partial(collection, partial, context, block)
SameCollectionIterator.new(collection, partial, iter_vars)
end


template = find_template(partial, @locals.keys + iter_vars)

layout = if !block && (layout = @options[:layout])
Expand Down
1 change: 0 additions & 1 deletion actionview/test/template/asset_tag_helper_test.rb
Expand Up @@ -509,7 +509,6 @@ def test_javascript_include_tag_without_request
assert_dom_equal %(<script src="/javascripts/foo.js"></script>), javascript_include_tag("foo.js")
end


def test_should_set_preload_links
stylesheet_link_tag("http://example.com/style.css")
javascript_include_tag("http://example.com/all.js")
Expand Down
1 change: 0 additions & 1 deletion actionview/test/template/log_subscriber_test.rb
Expand Up @@ -260,7 +260,6 @@ def test_render_collection_template_with_layout
end
end


def test_render_collection_with_implicit_path
Rails.stub(:root, File.expand_path(FIXTURE_LOAD_PATH)) do
set_cache_controller
Expand Down
1 change: 0 additions & 1 deletion actionview/test/template/render_test.rb
Expand Up @@ -72,7 +72,6 @@ def test_render_template
assert_equal "Hello world!", @view.render(template: "test/hello_world")
end


def test_render_file
assert_equal "Hello world!", assert_deprecated { @view.render(file: "test/hello_world") }
end
Expand Down
1 change: 0 additions & 1 deletion activerecord/lib/active_record/database_configurations.rb
Expand Up @@ -100,7 +100,6 @@ def primary?(name) # :nodoc:
first_config && name == first_config.name
end


# Returns the DatabaseConfigurations object as a Hash.
def to_h
configurations.inject({}) do |memo, db_config|
Expand Down
1 change: 0 additions & 1 deletion activerecord/test/cases/query_cache_test.rb
Expand Up @@ -96,7 +96,6 @@ def test_query_cache_is_applied_to_connections_in_all_handlers
clean_up_connection_handler
end


if Process.respond_to?(:fork) && !in_memory_db?
def test_query_cache_with_multiple_handlers_and_forked_processes
ActiveRecord::Base.connection_handlers = {
Expand Down
1 change: 0 additions & 1 deletion activerecord/test/cases/relation/where_chain_test.rb
Expand Up @@ -8,7 +8,6 @@
require "models/comment"
require "models/categorization"


module ActiveRecord
class WhereChainTest < ActiveRecord::TestCase
fixtures :posts, :comments, :authors, :humans, :essays
Expand Down
Expand Up @@ -102,7 +102,6 @@ def class_attribute(*attrs, instance_accessor: true,
end
RUBY


class_methods << <<~RUBY
silence_redefinition_of_method def #{name}=(value)
redefine_method(:#{name}) { value } if singleton_class?
Expand Down
1 change: 0 additions & 1 deletion activesupport/test/json/encoding_test.rb
Expand Up @@ -164,7 +164,6 @@ def test_struct_to_json_with_options_nested
assert_equal({ "foo" => { "foo" => "hello" } }, JSON.parse(json))
end


def test_hash_should_pass_encoding_options_to_children_in_as_json
person = {
name: "John",
Expand Down
1 change: 0 additions & 1 deletion railties/lib/rails/test_unit/runner.rb
Expand Up @@ -44,7 +44,6 @@ def run(argv = [])
def load_tests(argv)
patterns = extract_filters(argv)


tests = Rake::FileList[patterns.any? ? patterns : default_test_glob]
tests.exclude(default_test_exclude_glob) if patterns.empty?

Expand Down
1 change: 0 additions & 1 deletion railties/test/commands/credentials_test.rb
Expand Up @@ -178,7 +178,6 @@ class Rails::Command::CredentialsCommandTest < ActiveSupport::TestCase
assert_match(encrypted_content, run_diff_command(content_path))
end


private
def run_edit_command(editor: "cat", environment: nil, **options)
switch_env("EDITOR", editor) do
Expand Down
1 change: 0 additions & 1 deletion railties/test/commands/initializers_test.rb
Expand Up @@ -25,7 +25,6 @@ class Rails::Command::InitializersTest < ActiveSupport::TestCase
assert final_output.include?("set_added_test_module")
end


test "prints out initializers only specified in environment option" do
add_to_config <<-RUBY
initializer(:set_added_development_module) { } if Rails.env.development?
Expand Down
1 change: 0 additions & 1 deletion railties/test/generators/model_generator_test.rb
Expand Up @@ -15,7 +15,6 @@ def setup
Rails.application.config.active_record.belongs_to_required_by_default = true
end


def teardown
Rails.application.config.active_record.belongs_to_required_by_default = @old_belongs_to_required_by_default
end
Expand Down

0 comments on commit c848baf

Please sign in to comment.