Sha256: dd9ef15a9d8a62e6b86494fe1b959acf6d6508fe0ea446b2dc004736f294232a
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
if defined?(ActiveRecord::Base) class ActiveRecord::Base class_attribute :shared_connection def self.connection self.shared_connection || retrieve_connection end end Before('@javascript') do Cucumber::Rails::Database.before_js end Before('~@javascript') do Cucumber::Rails::Database.before_non_js end After do Cucumber::Rails::Database.after end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-rails-1.4.0 | lib/cucumber/rails/hooks/active_record.rb |
cucumber-rails-1.3.1 | lib/cucumber/rails/hooks/active_record.rb |