mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Merge pull request #165 from betelgeuse/cucumber_infra_improvements
Cucumber infra improvements
This commit is contained in:
commit
2a32a9c9be
1 changed files with 3 additions and 12 deletions
|
@ -6,7 +6,7 @@ require 'bundler'
|
|||
|
||||
Bundler.setup
|
||||
require 'rspec/expectations'
|
||||
require 'ruby-debug'
|
||||
#require 'ruby-debug'
|
||||
|
||||
DB_DIR = "#{File.dirname(__FILE__)}/../../db"
|
||||
|
||||
|
@ -20,19 +20,10 @@ if orm && strategy
|
|||
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
|
||||
require 'database_cleaner'
|
||||
require 'database_cleaner/cucumber'
|
||||
|
||||
begin
|
||||
require "#{File.dirname(__FILE__)}/../../lib/#{orm.downcase}_models"
|
||||
rescue LoadError => e
|
||||
raise "You don't have the #{orm} ORM installed"
|
||||
end
|
||||
require "#{File.dirname(__FILE__)}/../../lib/#{orm.downcase}_models"
|
||||
|
||||
if another_orm
|
||||
begin
|
||||
require "#{File.dirname(__FILE__)}/../../lib/#{another_orm.downcase}_models"
|
||||
rescue LoadError => e
|
||||
raise "You don't have the #{another_orm} ORM installed"
|
||||
end
|
||||
require "#{File.dirname(__FILE__)}/../../lib/#{another_orm.downcase}_models"
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue