Mock out what we need from AR::Base.
Namespace
- MODULE ActiveRecord::Aggregations
- MODULE ActiveRecord::Associations
- MODULE ActiveRecord::AttributeAssignment
- MODULE ActiveRecord::AttributeMethods
- MODULE ActiveRecord::AutosaveAssociation
- MODULE ActiveRecord::Batches
- MODULE ActiveRecord::Calculations
- MODULE ActiveRecord::Callbacks
- MODULE ActiveRecord::Coders
- MODULE ActiveRecord::ConnectionAdapters
- MODULE ActiveRecord::CounterCache
- MODULE ActiveRecord::Delegation
- MODULE ActiveRecord::DynamicMatchers
- MODULE ActiveRecord::Explain
- MODULE ActiveRecord::FinderMethods
- MODULE ActiveRecord::Generators
- MODULE ActiveRecord::IdentityMap
- MODULE ActiveRecord::Inheritance
- MODULE ActiveRecord::Integration
- MODULE ActiveRecord::Locking
- MODULE ActiveRecord::ModelSchema
- MODULE ActiveRecord::NestedAttributes
- MODULE ActiveRecord::Persistence
- MODULE ActiveRecord::QueryMethods
- MODULE ActiveRecord::Querying
- MODULE ActiveRecord::Railties
- MODULE ActiveRecord::ReadonlyAttributes
- MODULE ActiveRecord::Reflection
- MODULE ActiveRecord::Sanitization
- MODULE ActiveRecord::Scoping
- MODULE ActiveRecord::Serialization
- MODULE ActiveRecord::SpawnMethods
- MODULE ActiveRecord::Store
- MODULE ActiveRecord::TestFixtures
- MODULE ActiveRecord::Timestamp
- MODULE ActiveRecord::Transactions
- MODULE ActiveRecord::Translation
- MODULE ActiveRecord::Validations
- MODULE ActiveRecord::ValidationsRepairHelper
- CLASS ActiveRecord::ActiveRecordError
- CLASS ActiveRecord::AdapterNotFound
- CLASS ActiveRecord::AdapterNotSpecified
- CLASS ActiveRecord::AdapterTest
- CLASS ActiveRecord::AssociationTypeMismatch
- CLASS ActiveRecord::AttributeAssignmentError
- CLASS ActiveRecord::Base
- CLASS ActiveRecord::BindParameterTest
- CLASS ActiveRecord::CloneTest
- CLASS ActiveRecord::ConfigurationError
- CLASS ActiveRecord::ConnectionNotEstablished
- CLASS ActiveRecord::ConnectionTimeoutError
- CLASS ActiveRecord::CustomLockingTest
- CLASS ActiveRecord::DangerousAttributeError
- CLASS ActiveRecord::DupTest
- CLASS ActiveRecord::DynamicFinderMatch
- CLASS ActiveRecord::DynamicFinderMatchTest
- CLASS ActiveRecord::DynamicScopeMatch
- CLASS ActiveRecord::Faker
- CLASS ActiveRecord::Fixtures
- CLASS ActiveRecord::InvalidForeignKey
- CLASS ActiveRecord::InvertibleMigrationTest
- CLASS ActiveRecord::IrreversibleMigration
- CLASS ActiveRecord::LogSubscriber
- CLASS ActiveRecord::Migration
- CLASS ActiveRecord::MigrationProxy
- CLASS ActiveRecord::MultiparameterAssignmentErrors
- CLASS ActiveRecord::Observer
- CLASS ActiveRecord::PostgresqlConnectionTest
- CLASS ActiveRecord::PreparedStatementInvalid
- CLASS ActiveRecord::QueryCache
- CLASS ActiveRecord::Railtie
- CLASS ActiveRecord::ReadOnlyRecord
- CLASS ActiveRecord::RecordInvalid
- CLASS ActiveRecord::RecordNotFound
- CLASS ActiveRecord::RecordNotSaved
- CLASS ActiveRecord::RecordNotUnique
- CLASS ActiveRecord::Relation
- CLASS ActiveRecord::RelationTest
- CLASS ActiveRecord::Result
- CLASS ActiveRecord::Rollback
- CLASS ActiveRecord::SQLCounter
- CLASS ActiveRecord::Schema
- CLASS ActiveRecord::SerializationTypeMismatch
- CLASS ActiveRecord::SessionStore
- CLASS ActiveRecord::StaleObjectError
- CLASS ActiveRecord::StatementInvalid
- CLASS ActiveRecord::ThrowResult
- CLASS ActiveRecord::UnknownAttributeError
- CLASS ActiveRecord::UnknownPrimaryKey
- CLASS ActiveRecord::WhereTest
- CLASS ActiveRecord::WrappedDatabaseException
Methods
- N
- S
- T
-
- test_crazy_object,
- test_crazy_object_calls_quote_string,
- test_quote_as_mb_chars_binary_column,
- test_quote_as_mb_chars_binary_column_with_string_to_binary,
- test_quote_as_mb_chars_no_column,
- test_quote_binary_with_string_to_binary,
- test_quote_binary_without_string_to_binary,
- test_quote_string_float_column,
- test_quote_string_int_column,
- test_quote_string_no_column,
- test_string_with_crazy_column
Class Public methods
new()
Link
Instance Public methods
string_to_binary(value)
Link
test_crazy_object()
Link
test_crazy_object_calls_quote_string()
Link
test_quote_as_mb_chars_binary_column()
Link
test_quote_as_mb_chars_binary_column_with_string_to_binary()
Link
# File activerecord/test/cases/quoting_test.rb, line 206 def test_quote_as_mb_chars_binary_column_with_string_to_binary col = Class.new(FakeColumn) { def string_to_binary(value) 'foo' end }.new(:binary) string = ActiveSupport::Multibyte::Chars.new('lo\l') assert_equal "'foo'", @quoter.quote(string, col) end
test_quote_as_mb_chars_no_column()
Link
test_quote_binary_with_string_to_binary()
Link
test_quote_binary_without_string_to_binary()
Link
test_quote_string_float_column()
Link
test_quote_string_int_column()
Link
test_quote_string_no_column()
Link