Permalink
Browse files

Fixed up a broken JNDI test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/jruby-extras/trunk/activerecord-jdbc@1025 8ba958d5-0c1a-0410-94a6-a65dfc1b28a6
  • Loading branch information...
1 parent 58afe96 commit 6a40ad890289b70dd02ecaa9c98885783acfd436 kofno committed Jun 11, 2008
Showing with 6 additions and 7 deletions.
  1. +2 −1 .gitignore
  2. +4 −6 test/jndi_test.rb
View
3 .gitignore
@@ -7,4 +7,5 @@ lib/jdbc_adapter/jdbc_adapter_internal.jar
test.*
doc
build.xml
-nbproject
+nbproject
+*~
View
10 test/jndi_test.rb
@@ -12,18 +12,16 @@
#
# Finally, you'll need the jdbc driver, which is derby, for this test.
-require 'models/auto_id'
-require 'models/entry'
+require 'jdbc_common'
require 'db/jndi_config'
-require 'simple'
-require 'test/unit'
-require 'logger'
class DerbyJndiTest < Test::Unit::TestCase
include SimpleTestMethods
alias_method :setup_simple, :setup
def setup
- ActiveRecord::Base.establish_connection({ :jndi => 'jdbc/derbydb', :adapter => 'jdbc'})
+ ActiveRecord::Base.establish_connection({
+ :jndi => 'jdbc/derbydb',
+ :adapter => 'jdbc'})
logger = Logger.new('jndi_test.log')
logger.level = Logger::DEBUG
ActiveRecord::Base.logger = logger

0 comments on commit 6a40ad8

Please sign in to comment.