Skip to content

Commit 7653e9a

Browse files
committed
ENV_JAVA (a Java::OrgJrubyJavaUtil::SystemPropertiesMap) does not like replace(arg1)
1 parent 8a7d3c2 commit 7653e9a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/db/postgresql/jdbc_postgres_test.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
require 'test_helper'
2-
require 'jdbc/postgres' if defined? JRUBY_VERSION
32

43
module Jdbc
54
class PostgresTest < Test::Unit::TestCase
65

76
SYSTEM_ENV = ENV_JAVA.dup
87

8+
setup do
9+
require 'jdbc/postgres'
10+
end
11+
912
teardown do
10-
ENV_JAVA.replace SYSTEM_ENV
13+
ENV_JAVA.clear; ENV_JAVA.update SYSTEM_ENV
1114
end
1215

1316
test 'returns jdbc version 3 on java 5 (only for compatibility)' do

0 commit comments

Comments
 (0)