Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added jndi connection spec to all drivers

  • Loading branch information...
commit efe403452565f130c30d49e6deed23a1db226f94 1 parent bf9d036
@mkristian mkristian authored
View
2  data_objects/lib/data_objects/spec/connection_spec.rb
@@ -146,7 +146,7 @@ def connecting_with(uri)
@jndi.teardown() unless @jndi.nil?
end
- if @jndi
+ unless @jndi.nil?
it 'should connect' do
begin
c = DataObjects::Connection.new("java:comp/env/jdbc/mydb?scheme=#{CONFIG.scheme}")
View
1  do_derby/spec/connection_spec.rb
@@ -16,4 +16,5 @@
it_should_behave_like 'a Connection'
#it_should_behave_like 'a Connection with authentication support'
+ it_should_behave_like 'a Connection via JDNI' if JRUBY
end
View
1  do_h2/spec/connection_spec.rb
@@ -16,4 +16,5 @@
it_should_behave_like 'a Connection'
#it_should_behave_like 'a Connection with authentication support'
+ it_should_behave_like 'a Connection via JDNI' if JRUBY
end
View
1  do_hsqldb/spec/connection_spec.rb
@@ -16,4 +16,5 @@
it_should_behave_like 'a Connection'
#it_should_behave_like 'a Connection with authentication support'
+ it_should_behave_like 'a Connection via JDNI' if JRUBY
end
View
1  do_mysql/spec/connection_spec.rb
@@ -19,6 +19,7 @@
it_should_behave_like 'a Connection'
it_should_behave_like 'a Connection with authentication support'
it_should_behave_like 'a Connection with SSL support' unless JRUBY
+ it_should_behave_like 'a Connection via JDNI' if JRUBY
if DataObjectsSpecHelpers.test_environment_supports_ssl?
View
1  do_oracle/spec/connection_spec.rb
@@ -16,4 +16,5 @@
it_should_behave_like 'a Connection'
it_should_behave_like 'a Connection with authentication support'
+ it_should_behave_like 'a Connection via JDNI' if JRUBY
end
View
1  do_sqlserver/spec/connection_spec.rb
@@ -16,4 +16,5 @@
it_should_behave_like 'a Connection'
#it_should_behave_like 'a Connection with authentication support'
+ it_should_behave_like 'a Connection via JDNI' if JRUBY
end
Please sign in to comment.
Something went wrong with that request. Please try again.