Sha256: 0bbf2b6e0d28b8a44f457004b1918b048da6f32461f0ec2218f49cd298eba9ce

Contents?: true

Size: 586 Bytes

Versions: 14

Compression:

Stored size: 586 Bytes

Contents

Given /^I am using (ActiveRecord|DataMapper)$/ do |orm|
  @orm = orm
end

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

When "I run my scenarios that rely on a clean database" do
  full_dir ||= File.expand_path(File.dirname(__FILE__) + "/../../examples/")
  Dir.chdir(full_dir) do
    ENV['ORM'] = @orm.downcase
    ENV['STRATEGY'] = @strategy
    @out = `cucumber features`
    @status = $?.exitstatus
  end
end

Then "I should see all green" do
  unless @status == 0
    raise "Expected to see all green but we saw FAIL! Output:\n#{@out}"
  end
end


Version data entries

14 entries across 14 versions & 7 rubygems

Version Path
HusseinMorsy-database_cleaner-0.2.2 features/step_definitions/database_cleaner_steps.rb
adzap-database_cleaner-0.2.3 features/step_definitions/database_cleaner_steps.rb
bmabey-database_cleaner-0.1.1 features/step_definitions/database_cleaner_steps.rb
bmabey-database_cleaner-0.1.2 features/step_definitions/database_cleaner_steps.rb
bmabey-database_cleaner-0.1.3 features/step_definitions/database_cleaner_steps.rb
bmabey-database_cleaner-0.2.0 features/step_definitions/database_cleaner_steps.rb
bmabey-database_cleaner-0.2.1 features/step_definitions/database_cleaner_steps.rb
bmabey-database_cleaner-0.2.2 features/step_definitions/database_cleaner_steps.rb
bmabey-database_cleaner-0.2.3 features/step_definitions/database_cleaner_steps.rb
darrell-database_cleaner-0.2.3.2 features/step_definitions/database_cleaner_steps.rb
yozhyk-database_cleaner-0.2.4 features/step_definitions/database_cleaner_steps.rb
database_cleaner-0.3.0 features/step_definitions/database_cleaner_steps.rb
database_cleaner-0.2.3 features/step_definitions/database_cleaner_steps.rb
dsturnbull-database_cleaner-0.2.4 features/step_definitions/database_cleaner_steps.rb