Sha256: eab0dc0c53af296bcb2506fd9b4bfab3ba7ab50e3207aa9bfc5f698f66b667ea

Contents?: true

Size: 991 Bytes

Versions: 11

Compression:

Stored size: 991 Bytes

Contents

orms_pattern = /(ActiveRecord|DataMapper|MongoMapper|Mongoid|CouchPotato|Redis|Ohm)/

Given /^I am using #{orms_pattern}$/ do |orm|
  @feature_runner = FeatureRunner.new
  @feature_runner.orm = orm
end

Given /^I am using #{orms_pattern} and #{orms_pattern}$/ do |orm1,orm2|
  @feature_runner = FeatureRunner.new
  @feature_runner.orm         = orm1
  @feature_runner.another_orm = orm2
end

Given /^the (.+) cleaning strategy$/ do |strategy|
  @feature_runner.strategy = strategy
end

When "I run my scenarios that rely on a clean database" do
  @feature_runner.go 'example'
end

When "I run my scenarios that rely on clean databases" do
  @feature_runner.multiple_databases = true
  @feature_runner.go 'example_multiple_db'
end

When "I run my scenarios that rely on clean databases using multiple orms" do
  @feature_runner.go 'example_multiple_orm'
end

Then "I should see all green" do
  fail "Feature failed with :#{@feature_runner.output}" unless @feature_runner.exit_status == 0
end

Version data entries

11 entries across 6 versions & 2 rubygems

Version Path
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/database_cleaner-1.2.0/features/step_definitions/database_cleaner_steps.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/database_cleaner-1.2.0/features/step_definitions/database_cleaner_steps.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/database_cleaner-1.2.0/features/step_definitions/database_cleaner_steps.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/database_cleaner-1.2.0/features/step_definitions/database_cleaner_steps.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/database_cleaner-1.2.0/features/step_definitions/database_cleaner_steps.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/database_cleaner-1.2.0/features/step_definitions/database_cleaner_steps.rb
database_cleaner-1.3.0 features/step_definitions/database_cleaner_steps.rb
database_cleaner-1.2.0 features/step_definitions/database_cleaner_steps.rb
database_cleaner-1.1.1 features/step_definitions/database_cleaner_steps.rb
database_cleaner-1.1.0 features/step_definitions/database_cleaner_steps.rb
database_cleaner-1.0.1 features/step_definitions/database_cleaner_steps.rb