Sha256: d62aeeaa730e3aaf47525091e80b5ebb3a7f0b0ecde3b5c89b08ef043e92684c
Contents?: true
Size: 582 Bytes
Versions: 4
Compression:
Stored size: 582 Bytes
Contents
require 'helper' module Coupler class TestDatabase < Coupler::Test::UnitTest def setup super @database = Coupler::Database.instance end def test_connection assert_kind_of Sequel::JDBC::Database, @database.__getobj__ expected = Base.connection_string('coupler') assert_equal expected, @database.uri end def test_migrate dir = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "db", "migrate")) Sequel::Migrator.expects(:apply).with(@database.__getobj__, dir) @database.migrate! end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
coupler-0.0.4-java | test/unit/test_database.rb |
coupler-0.0.3-java | test/unit/test_database.rb |
coupler-0.0.2-java | test/unit/test_database.rb |
coupler-0.0.1-java | test/unit/test_database.rb |