mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
move spec and src files to a shardy way
This commit is contained in:
parent
928c1517dc
commit
44559f6f95
7 changed files with 15 additions and 19 deletions
|
@ -1,6 +1,4 @@
|
||||||
require "spec"
|
require "./spec_helper"
|
||||||
require "db"
|
|
||||||
require "./dummy_driver"
|
|
||||||
|
|
||||||
private def connections
|
private def connections
|
||||||
DummyDriver::DummyConnection.connections
|
DummyDriver::DummyConnection.connections
|
|
@ -1,4 +1,5 @@
|
||||||
require "spec"
|
require "spec"
|
||||||
|
require "../src/db"
|
||||||
|
|
||||||
class DummyDriver < DB::Driver
|
class DummyDriver < DB::Driver
|
||||||
def build_connection(db : DB::Database) : DB::Connection
|
def build_connection(db : DB::Database) : DB::Connection
|
|
@ -1,6 +1,4 @@
|
||||||
require "spec"
|
require "./spec_helper"
|
||||||
require "db"
|
|
||||||
require "./dummy_driver"
|
|
||||||
|
|
||||||
describe DummyDriver do
|
describe DummyDriver do
|
||||||
it "with_dummy executes the block with a database" do
|
it "with_dummy executes the block with a database" do
|
|
@ -1,6 +1,4 @@
|
||||||
require "spec"
|
require "./spec_helper"
|
||||||
require "db"
|
|
||||||
require "./dummy_driver"
|
|
||||||
|
|
||||||
describe DB::ResultSet do
|
describe DB::ResultSet do
|
||||||
it "should enumerate records using each" do
|
it "should enumerate records using each" do
|
3
spec/spec_helper.cr
Normal file
3
spec/spec_helper.cr
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
require "spec"
|
||||||
|
require "./dummy_driver"
|
||||||
|
require "../src/db"
|
|
@ -1,6 +1,4 @@
|
||||||
require "spec"
|
require "./spec_helper"
|
||||||
require "db"
|
|
||||||
require "./dummy_driver"
|
|
||||||
|
|
||||||
describe DB::Statement do
|
describe DB::Statement do
|
||||||
it "should prepare statements" do
|
it "should prepare statements" do
|
|
@ -118,10 +118,10 @@ module DB
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
require "./query_methods"
|
require "./db/query_methods"
|
||||||
require "./disposable"
|
require "./db/disposable"
|
||||||
require "./database"
|
require "./db/database"
|
||||||
require "./driver"
|
require "./db/driver"
|
||||||
require "./connection"
|
require "./db/connection"
|
||||||
require "./statement"
|
require "./db/statement"
|
||||||
require "./result_set"
|
require "./db/result_set"
|
Loading…
Reference in a new issue