initial database_cleaner-active_record gem extraction.

This commit is contained in:
Micah Geisel 2018-05-18 19:16:03 -07:00
parent 4c2408ffdb
commit e65c63c939
31 changed files with 1186 additions and 15 deletions

View file

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