File: encoding_spec.rb

package info (click to toggle)
ruby-dataobjects-postgres 0.10.17-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 344 kB
  • sloc: ansic: 1,509; ruby: 511; sh: 60; makefile: 5
file content (21 lines) | stat: -rw-r--r-- 904 bytes parent folder | download | duplicates (4)
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