1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
# encoding: utf-8
require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))
require 'data_objects/spec/shared/encoding_spec'
describe DataObjects::Postgres::Connection do
unless JRUBY
# Do NOT test this on JRuby:
#
# http://jdbc.postgresql.org/documentation/80/connect.html
#
# According to the Postgres documentation, as of Postgres 7.2, multibyte
# support is enabled by default in the server. The underlying JDBC Driver
# handles setting the internal client_encoding setting appropriately. It
# can be overridden -- but for now, we won't support doing this.
#
it_should_behave_like 'a driver supporting different encodings'
it_should_behave_like 'returning correctly encoded strings for the default database encoding'
it_should_behave_like 'returning correctly encoded strings for the default internal encoding'
end
end
|