Sha256: e821dcdebf93696c528edd496adf8ae1c430cca3ffa472c73cefb26a18da1229

Contents?: true

Size: 546 Bytes

Versions: 11

Compression:

Stored size: 546 Bytes

Contents

require 'rubygems'
require 'spec/expectations'

orm      = ENV['ORM']
strategy = ENV['STRATEGY']

if orm && strategy
  
  begin
    require "#{File.dirname(__FILE__)}/../../lib/#{orm}"
  rescue LoadError
    raise "You don't have the #{orm} ORM installed"
  end

  $:.unshift(File.dirname(__FILE__) + '/../../../lib')
  require 'database_cleaner'
  require 'database_cleaner/cucumber'

  DatabaseCleaner.strategy = strategy.to_sym
  
else
  raise "Run 'ORM=activerecord|datamapper STRATEGY=transaction|truncation cucumber examples/features'"
end

Version data entries

11 entries across 11 versions & 7 rubygems

Version Path
HusseinMorsy-database_cleaner-0.2.2 examples/features/support/env.rb
adzap-database_cleaner-0.2.3 examples/features/support/env.rb
bmabey-database_cleaner-0.2.0 examples/features/support/env.rb
bmabey-database_cleaner-0.2.1 examples/features/support/env.rb
bmabey-database_cleaner-0.2.2 examples/features/support/env.rb
bmabey-database_cleaner-0.2.3 examples/features/support/env.rb
darrell-database_cleaner-0.2.3.2 examples/features/support/env.rb
yozhyk-database_cleaner-0.2.4 examples/features/support/env.rb
database_cleaner-0.3.0 examples/features/support/env.rb
database_cleaner-0.2.3 examples/features/support/env.rb
dsturnbull-database_cleaner-0.2.4 examples/features/support/env.rb