simplify spec loading.

This commit is contained in:
Micah Geisel 2018-04-26 11:02:29 -07:00
parent 2fff7ab3f4
commit f7f8ef2cd3
32 changed files with 3 additions and 44 deletions

1
.rspec
View file

@ -1,2 +1,3 @@
--color
--format documentation
--require spec_helper

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'active_record'
require 'database_cleaner/active_record/base'
require 'database_cleaner/shared_strategy'

View file

@ -1,4 +1,3 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'database_cleaner/active_record/transaction'
require 'active_record'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'active_record'
require 'support/active_record/mysql2_setup'
require 'database_cleaner/active_record/truncation'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'active_record'
require 'support/active_record/mysql_setup'
require 'database_cleaner/active_record/truncation'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'active_record'
require 'support/active_record/postgresql_setup'
require 'database_cleaner/active_record/truncation'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'active_record'
require 'support/active_record/sqlite3_setup'
require 'database_cleaner/active_record/truncation'

View file

@ -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'

View file

@ -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'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
module ArrayHelper
def zipmap(array, vals)
Hash[*(array.zip(vals).flatten)]

View file

@ -1,4 +1,3 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'database_cleaner/couch_potato/truncation'
require 'couch_potato'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'database_cleaner/data_mapper/base'
require 'database_cleaner/shared_strategy'

View file

@ -1,4 +1,3 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'database_cleaner/data_mapper/transaction'
require 'database_cleaner/shared_strategy'
#require 'data_mapper'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'dm-core'
require 'dm-sqlite-adapter'
require 'support/data_mapper/sqlite3_setup'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'database_cleaner/shared_strategy'
require 'database_cleaner/generic/base'
require 'active_record'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'database_cleaner/generic/truncation'
module ::DatabaseCleaner

View file

@ -1,4 +1,3 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'mongo'
require 'database_cleaner/mongo/truncation'
require File.dirname(__FILE__) + '/mongo_examples'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'database_cleaner/mongo_mapper/base'
require 'database_cleaner/shared_strategy'

View file

@ -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'

View file

@ -1,4 +1,3 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'moped'
require 'database_cleaner/moped/truncation'
require File.dirname(__FILE__) + '/moped_examples'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'database_cleaner/neo4j/base'
require 'database_cleaner/shared_strategy'

View file

@ -1,4 +1,3 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'neo4j-core'
require 'database_cleaner/neo4j/transaction'

View file

@ -1,4 +1,4 @@
require 'spec_helper'
require "database_cleaner/null_strategy"
module DatabaseCleaner
describe NullStrategy do

View file

@ -1,4 +1,3 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'ohm'
require 'database_cleaner/ohm/truncation'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'redis'
require 'database_cleaner/redis/base'
require 'database_cleaner/shared_strategy'

View file

@ -1,4 +1,3 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'redis'
require 'database_cleaner/redis/truncation'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'active_record'
require 'database_cleaner/active_record/transaction'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'database_cleaner/sequel/base'
require 'database_cleaner/shared_strategy'
require 'sequel'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'database_cleaner/sequel/deletion'
require 'database_cleaner/shared_strategy'
require 'sequel'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'database_cleaner/sequel/transaction'
require 'database_cleaner/shared_strategy'
require 'sequel'

View file

@ -1,4 +1,3 @@
require 'spec_helper'
require 'database_cleaner/sequel/truncation'
require 'database_cleaner/shared_strategy'
require 'sequel'

View file

@ -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|