mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
initial database_cleaner-active_record gem extraction.
This commit is contained in:
parent
4c2408ffdb
commit
e65c63c939
31 changed files with 1186 additions and 15 deletions
|
|
@ -1,12 +1,14 @@
|
|||
orms_pattern = /(ActiveRecord|DataMapper|Sequel|MongoMapper|Mongoid|CouchPotato|Redis|Ohm|Neo4j)/
|
||||
|
||||
Given /^I am using #{orms_pattern}$/ do |orm|
|
||||
Given /^I am using #{orms_pattern}( from its adapter gem)?$/ do |orm, from_gems|
|
||||
@feature_runner = FeatureRunner.new
|
||||
@feature_runner.use_gems = !!from_gems
|
||||
@feature_runner.orm = orm
|
||||
end
|
||||
|
||||
Given /^I am using #{orms_pattern} and #{orms_pattern}$/ do |orm1,orm2|
|
||||
Given /^I am using #{orms_pattern} and #{orms_pattern}( from their adapter gems)?$/ do |orm1, orm2, from_gems|
|
||||
@feature_runner = FeatureRunner.new
|
||||
@feature_runner.use_gems = !!from_gems
|
||||
@feature_runner.orm = orm1
|
||||
@feature_runner.another_orm = orm2
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue