move spec and src files to a shardy way

This commit is contained in:
Brian J. Cardiff 2016-02-25 22:37:10 -03:00
parent 928c1517dc
commit 44559f6f95
7 changed files with 15 additions and 19 deletions

View file

@ -1,6 +1,4 @@
require "spec"
require "db"
require "./dummy_driver"
require "./spec_helper"
private def connections
DummyDriver::DummyConnection.connections

View file

@ -1,4 +1,5 @@
require "spec"
require "../src/db"
class DummyDriver < DB::Driver
def build_connection(db : DB::Database) : DB::Connection

View file

@ -1,6 +1,4 @@
require "spec"
require "db"
require "./dummy_driver"
require "./spec_helper"
describe DummyDriver do
it "with_dummy executes the block with a database" do

View file

@ -1,6 +1,4 @@
require "spec"
require "db"
require "./dummy_driver"
require "./spec_helper"
describe DB::ResultSet do
it "should enumerate records using each" do

3
spec/spec_helper.cr Normal file
View file

@ -0,0 +1,3 @@
require "spec"
require "./dummy_driver"
require "../src/db"

View file

@ -1,6 +1,4 @@
require "spec"
require "db"
require "./dummy_driver"
require "./spec_helper"
describe DB::Statement do
it "should prepare statements" do

View file

@ -118,10 +118,10 @@ module DB
end
end
require "./query_methods"
require "./disposable"
require "./database"
require "./driver"
require "./connection"
require "./statement"
require "./result_set"
require "./db/query_methods"
require "./db/disposable"
require "./db/database"
require "./db/driver"
require "./db/connection"
require "./db/statement"
require "./db/result_set"