mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Don't test invalid log encoding against PostgreSQL adapter
It already treats the message
This commit is contained in:
parent
4b04fc0528
commit
9b366b95f9
1 changed files with 6 additions and 4 deletions
|
@ -214,10 +214,12 @@ module ActiveRecord
|
|||
assert_equal "special_db_type", @connection.type_to_sql(:special_db_type)
|
||||
end
|
||||
|
||||
def test_log_invalid_encoding
|
||||
assert_raise ActiveRecord::StatementInvalid do
|
||||
@connection.send :log, "SELECT 'ы' FROM DUAL" do
|
||||
raise 'ы'.force_encoding(Encoding::ASCII_8BIT)
|
||||
unless current_adapter?(:PostgreSQLAdapter)
|
||||
def test_log_invalid_encoding
|
||||
assert_raise ActiveRecord::StatementInvalid do
|
||||
@connection.send :log, "SELECT 'ы' FROM DUAL" do
|
||||
raise 'ы'.force_encoding(Encoding::ASCII_8BIT)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue