class ActiveRecord::ConnectionAdapters::QuoteBooleanTest

Public Instance Methods

setup() click to toggle source
# File activerecord/test/cases/quoting_test.rb, line 233
def setup
  @connection = ActiveRecord::Base.connection
end
test_quote_returns_frozen_string() click to toggle source
# File activerecord/test/cases/quoting_test.rb, line 237
def test_quote_returns_frozen_string
  assert_predicate @connection.quote(true), :frozen?
  assert_predicate @connection.quote(false), :frozen?
end
test_type_cast_returns_frozen_value() click to toggle source
# File activerecord/test/cases/quoting_test.rb, line 242
def test_type_cast_returns_frozen_value
  assert_predicate @connection.type_cast(true), :frozen?
  assert_predicate @connection.type_cast(false), :frozen?
end