Mock out what we need from AR::Base.

Namespace
Methods
E
G
N
T
V
Constants
ADAPTERS_TASKS = { mysql: :mysql_tasks, mysql2: :mysql_tasks, postgresql: :postgresql_tasks, sqlite3: :sqlite_tasks }
 
Class Public methods
eager_load!()
# File activerecord/lib/active_record.rb, line 159
def self.eager_load!
  super
  ActiveRecord::Locking.eager_load!
  ActiveRecord::Scoping.eager_load!
  ActiveRecord::Associations.eager_load!
  ActiveRecord::AttributeMethods.eager_load!
  ActiveRecord::ConnectionAdapters.eager_load!
end
gem_version()

Returns the version of the currently loaded Active Record as a Gem::Version

# File activerecord/lib/active_record/gem_version.rb, line 3
def self.gem_version
  Gem::Version.new VERSION::STRING
end
new()
# File activerecord/test/cases/quoting_test.rb, line 134
def initialize; @lol = 'lo\l' end
version()

Returns the version of the currently loaded ActiveRecord as a Gem::Version

# File activerecord/lib/active_record/version.rb, line 5
def self.version
  gem_version
end
Instance Public methods
test_crazy_object()
# File activerecord/test/cases/quoting_test.rb, line 127
def test_crazy_object
  crazy = Class.new.new
  expected = "'#{YAML.dump(crazy)}'"
  assert_equal expected, @quoter.quote(crazy, nil)
end
test_crazy_object_calls_quote_string()
# File activerecord/test/cases/quoting_test.rb, line 133
def test_crazy_object_calls_quote_string
  crazy = Class.new { def initialize; @lol = 'lo\l' end }.new
  assert_match "lo\\\\l", @quoter.quote(crazy, nil)
end
test_quote_as_mb_chars_no_column()
# File activerecord/test/cases/quoting_test.rb, line 142
def test_quote_as_mb_chars_no_column
  string = ActiveSupport::Multibyte::Chars.new('lo\l')
  assert_equal "'lo\\\\l'", @quoter.quote(string, nil)
end
test_quote_duration()
# File activerecord/test/cases/quoting_test.rb, line 151
def test_quote_duration
  assert_equal "1800", @quoter.quote(30.minutes)
end
test_quote_string_no_column()
# File activerecord/test/cases/quoting_test.rb, line 138
def test_quote_string_no_column
  assert_equal "'lo\\\\l'", @quoter.quote('lo\l', nil)
end
test_string_with_crazy_column()
# File activerecord/test/cases/quoting_test.rb, line 147
def test_string_with_crazy_column
  assert_equal "'lo\\\\l'", @quoter.quote('lo\l')
end