Don't test invalid log encoding against PostgreSQL adapter

It already treats the message
This commit is contained in:
Rafael Mendonça França 2015-01-02 18:58:46 -03:00
parent 4b04fc0528
commit 9b366b95f9

@ -214,10 +214,12 @@ def test_select_methods_passing_a_relation
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