Sha256: 10ac9859578eea7ca8b441f2e9cbb041af1922c21e5d6d7d53fdf1c516a3982d
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
puts 'INFO: Using mattscilipoti_cucumber-rails -v0.2.4' if defined?(ActiveRecord::Base) Before do $__cucumber_global_use_txn = !!Cucumber::Rails::World.use_transactional_fixtures if $__cucumber_global_use_txn.nil? end Before('~@no-txn', '~@selenium', '~@culerity', '~@celerity', '~@javascript') do Cucumber::Rails::World.use_transactional_fixtures = $__cucumber_global_use_txn end Before('@no-txn,@selenium,@culerity,@celerity,@javascript') do Cucumber::Rails::World.use_transactional_fixtures = false end Before do if Cucumber::Rails::World.use_transactional_fixtures run_callbacks :setup if respond_to?(:run_callbacks) else DatabaseCleaner.start end ActionMailer::Base.deliveries = [] if defined?(ActionMailer::Base) end After do if Cucumber::Rails::World.use_transactional_fixtures run_callbacks :teardown if respond_to?(:run_callbacks) else DatabaseCleaner.clean if Cucumber::Rails::World.clean_database_after end end else module Cucumber::Rails def World.fixture_table_names; []; end # Workaround for projects that don't use ActiveRecord end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mattscilipoti_cucumber-rails-0.2.4 | lib/cucumber/rails/active_record.rb |