This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test_run_in_parallel_with_unmarshable_exception | |
test_run_in_parallel_with_unknown_object | |
% bin/test test/application/test_runner_test.rb -n test_run_in_parallel_with_unknown_object | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem "rails", github: "rails/rails" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts RUBY_VERSION | |
module Rails | |
end | |
def Rails.root; :defined_root end | |
p defined?(Rails.root) | |
Rails.instance_eval { undef :root } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem "rails", github: "rails/rails" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
def initialize(target) | |
@target = target | |
end | |
if RUBY_VERSION > "2.7" | |
def method_missing(method, *args, **kwargs, &block) | |
@target.send(method, *args, **kwargs, &block) | |
end | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationRecord < ActiveRecord::Base | |
self.abstract_class = true | |
def self.optimizer_hints(hints) | |
hints.present? ? extending(OptimizerHints.new(hints.to_s)) : all | |
end | |
class OptimizerHints < Module | |
def initialize(hints) | |
define_method(:build_arel) do |*args| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load the Rails application. | |
require_relative 'application' | |
# Initialize the Rails application. | |
Rails.application.initialize! | |
ActiveRecord::SchemaDumper.ignore_tables << %r{ | |
\A (?: | |
_ # initials _ | |
| test_ # for testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/activerecord/test/cases/associations/inner_join_association_test.rb b/activerecord/test/cases/associations/inner_join_association_test.rb | |
index e0dac01f4a..ebba6b28b7 100644 | |
--- a/activerecord/test/cases/associations/inner_join_association_test.rb | |
+++ b/activerecord/test/cases/associations/inner_join_association_test.rb | |
@@ -13,7 +13,18 @@ | |
class InnerJoinAssociationTest < ActiveRecord::TestCase | |
fixtures :authors, :author_addresses, :essays, :posts, :comments, :categories, :categories_posts, :categorizations, | |
- :taggings, :tags | |
+ :taggings, :tags, :people |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem "rails", github: "rails/rails" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem "rails", github: "rails/rails" |