Sha256: a8ab15f4929d2ab6539bdcaa0d097d13d42596ebdbc0a97dd882b5b8b54f75b0
Contents?: true
Size: 512 Bytes
Versions: 2
Compression:
Stored size: 512 Bytes
Contents
require 'helper' class TestDatabase < Test::Unit::TestCase def setup super @database = Hourglass::Database end test "connection" do assert_kind_of Sequel::JDBC::Database, @database expected = "jdbc:h2:#{Hourglass.db_path};IGNORECASE=TRUE" assert_equal expected, @database.uri end test "migrate" do dir = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "db", "migrate")) Sequel::Migrator.expects(:run).with(@database, dir) @database.migrate! end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hourglass-0.0.2-java | test/unit/test_database.rb |
hourglass-0.0.1-java | test/unit/test_database.rb |