mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
simplify spec loading.
This commit is contained in:
parent
2fff7ab3f4
commit
f7f8ef2cd3
32 changed files with 3 additions and 44 deletions
1
.rspec
1
.rspec
|
@ -1,2 +1,3 @@
|
|||
--color
|
||||
--format documentation
|
||||
--require spec_helper
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'active_record'
|
||||
require 'database_cleaner/active_record/base'
|
||||
require 'database_cleaner/shared_strategy'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require File.dirname(__FILE__) + '/../../spec_helper'
|
||||
require 'database_cleaner/active_record/transaction'
|
||||
require 'active_record'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'active_record'
|
||||
require 'support/active_record/mysql2_setup'
|
||||
require 'database_cleaner/active_record/truncation'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'active_record'
|
||||
require 'support/active_record/mysql_setup'
|
||||
require 'database_cleaner/active_record/truncation'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'active_record'
|
||||
require 'support/active_record/postgresql_setup'
|
||||
require 'database_cleaner/active_record/truncation'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'active_record'
|
||||
require 'support/active_record/sqlite3_setup'
|
||||
require 'database_cleaner/active_record/truncation'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require File.dirname(__FILE__) + '/../../spec_helper'
|
||||
require 'active_record'
|
||||
require 'active_record/connection_adapters/mysql_adapter'
|
||||
require 'active_record/connection_adapters/mysql2_adapter'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require File.dirname(__FILE__) + '/../spec_helper'
|
||||
require 'database_cleaner/active_record/transaction'
|
||||
require 'database_cleaner/data_mapper/transaction'
|
||||
require 'database_cleaner/mongo_mapper/truncation'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
module ArrayHelper
|
||||
def zipmap(array, vals)
|
||||
Hash[*(array.zip(vals).flatten)]
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require File.dirname(__FILE__) + '/../../spec_helper'
|
||||
require 'database_cleaner/couch_potato/truncation'
|
||||
require 'couch_potato'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'database_cleaner/data_mapper/base'
|
||||
require 'database_cleaner/shared_strategy'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require File.dirname(__FILE__) + '/../../spec_helper'
|
||||
require 'database_cleaner/data_mapper/transaction'
|
||||
require 'database_cleaner/shared_strategy'
|
||||
#require 'data_mapper'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'dm-core'
|
||||
require 'dm-sqlite-adapter'
|
||||
require 'support/data_mapper/sqlite3_setup'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'database_cleaner/shared_strategy'
|
||||
require 'database_cleaner/generic/base'
|
||||
require 'active_record'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'database_cleaner/generic/truncation'
|
||||
|
||||
module ::DatabaseCleaner
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require File.dirname(__FILE__) + '/../../spec_helper'
|
||||
require 'mongo'
|
||||
require 'database_cleaner/mongo/truncation'
|
||||
require File.dirname(__FILE__) + '/mongo_examples'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'database_cleaner/mongo_mapper/base'
|
||||
require 'database_cleaner/shared_strategy'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require File.dirname(__FILE__) + '/../../spec_helper'
|
||||
require 'mongo_mapper'
|
||||
require 'database_cleaner/mongo_mapper/truncation'
|
||||
require File.dirname(__FILE__) + '/mongo_examples'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require File.dirname(__FILE__) + '/../../spec_helper'
|
||||
require 'moped'
|
||||
require 'database_cleaner/moped/truncation'
|
||||
require File.dirname(__FILE__) + '/moped_examples'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'database_cleaner/neo4j/base'
|
||||
require 'database_cleaner/shared_strategy'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require File.dirname(__FILE__) + '/../../spec_helper'
|
||||
require 'neo4j-core'
|
||||
require 'database_cleaner/neo4j/transaction'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'spec_helper'
|
||||
require "database_cleaner/null_strategy"
|
||||
|
||||
module DatabaseCleaner
|
||||
describe NullStrategy do
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require File.dirname(__FILE__) + '/../../spec_helper'
|
||||
require 'ohm'
|
||||
require 'database_cleaner/ohm/truncation'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'redis'
|
||||
require 'database_cleaner/redis/base'
|
||||
require 'database_cleaner/shared_strategy'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require File.dirname(__FILE__) + '/../../spec_helper'
|
||||
require 'redis'
|
||||
require 'database_cleaner/redis/truncation'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'active_record'
|
||||
require 'database_cleaner/active_record/transaction'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'database_cleaner/sequel/base'
|
||||
require 'database_cleaner/shared_strategy'
|
||||
require 'sequel'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'database_cleaner/sequel/deletion'
|
||||
require 'database_cleaner/shared_strategy'
|
||||
require 'sequel'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'database_cleaner/sequel/transaction'
|
||||
require 'database_cleaner/shared_strategy'
|
||||
require 'sequel'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'spec_helper'
|
||||
require 'database_cleaner/sequel/truncation'
|
||||
require 'database_cleaner/shared_strategy'
|
||||
require 'sequel'
|
||||
|
|
|
@ -1,17 +1,4 @@
|
|||
require "rubygems"
|
||||
|
||||
require "bundler"
|
||||
Bundler.setup
|
||||
|
||||
require 'rspec/core'
|
||||
require 'rspec/mocks'
|
||||
|
||||
#require 'active_record'
|
||||
#require 'mongo_mapper'
|
||||
|
||||
$:.unshift(File.dirname(__FILE__))
|
||||
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
||||
|
||||
require "bundler/setup"
|
||||
require 'database_cleaner'
|
||||
|
||||
RSpec.configure do |config|
|
||||
|
|
Loading…
Reference in a new issue