Skip to content

Commit

Permalink
Fixed up a broken JNDI test.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/jruby-extras/trunk/activerecord-jdbc@1025 8ba958d5-0c1a-0410-94a6-a65dfc1b28a6
  • Loading branch information
kofno committed Jun 11, 2008
1 parent 58afe96 commit 6a40ad8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -7,4 +7,5 @@ lib/jdbc_adapter/jdbc_adapter_internal.jar
test.*
doc
build.xml
nbproject
nbproject
*~
10 changes: 4 additions & 6 deletions test/jndi_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 6a40ad8

Please sign in to comment.