Sha256: 592a3935dbf1241990f7e6e685788fc4b13197c25b5ede35120bc753ee28e831

Contents?: true

Size: 526 Bytes

Versions: 7

Compression:

Stored size: 526 Bytes

Contents

if defined?(DatabaseCleaner)
  # cleaning the database using database_cleaner
  DatabaseCleaner.strategy = :truncation
  DatabaseCleaner.clean
else
  logger.warn "add database_cleaner or update cypress/app_commands/clean.rb"
  Post.delete_all if defined?(Post)
end

CypressOnRails::SmartFactoryWrapper.reload

if defined?(VCR)
  VCR.eject_cassette # make sure we no cassette inserted before the next test starts
  VCR.turn_off!
  WebMock.disable! if defined?(WebMock)
end

Rails.logger.info "APPCLEANED" # used by log_fail.rb

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cypress-on-rails-1.17.0 lib/generators/cypress_on_rails/templates/spec/e2e/app_commands/clean.rb
cypress-on-rails-1.16.0 lib/generators/cypress_on_rails/templates/spec/e2e/app_commands/clean.rb
cypress-on-rails-1.15.1 lib/generators/cypress_on_rails/templates/spec/e2e/app_commands/clean.rb
cypress-on-rails-1.15.0 lib/generators/cypress_on_rails/templates/spec/e2e/app_commands/clean.rb
cypress-on-rails-1.14.0 lib/generators/cypress_on_rails/templates/spec/cypress/app_commands/clean.rb
cypress-on-rails-1.13.1 lib/generators/cypress_on_rails/templates/spec/cypress/app_commands/clean.rb
cypress-on-rails-1.13.0 lib/generators/cypress_on_rails/templates/spec/cypress/app_commands/clean.rb