Title: [1025] trunk/activerecord-jdbc: Fixed up a broken JNDI test.
- Revision
- 1025
- Author
- kofno
- Date
- 2008-06-10 22:20:50 -0400 (Tue, 10 Jun 2008)
Log Message
Fixed up a broken JNDI test.
Modified Paths
Diff
Modified: trunk/activerecord-jdbc/.gitignore (1024 => 1025)
--- trunk/activerecord-jdbc/.gitignore 2008-06-10 04:11:25 UTC (rev 1024)
+++ trunk/activerecord-jdbc/.gitignore 2008-06-11 02:20:50 UTC (rev 1025)
@@ -7,4 +7,5 @@
test.*
doc
build.xml
-nbproject
\ No newline at end of file
+nbproject
+*~
\ No newline at end of file
Modified: trunk/activerecord-jdbc/test/jndi_test.rb (1024 => 1025)
--- trunk/activerecord-jdbc/test/jndi_test.rb 2008-06-10 04:11:25 UTC (rev 1024)
+++ trunk/activerecord-jdbc/test/jndi_test.rb 2008-06-11 02:20:50 UTC (rev 1025)
@@ -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
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel