Removed the rake db:test:prepare tasks as cucumber automatically

uses Databasecleaner with the correct strategy to reset the database
after each scenario
pull/69/merge
Sebastian Schuster 12 years ago
parent 4fa4852ca8
commit 47a0214381
  1. 3
      features/step_definitions/general_steps.rb

@ -4,9 +4,6 @@ require "rack_session_access/capybara"
Before do |scenario|
unless ScenarioDisabler.empty_if_disabled(scenario)
# Reset the DB and load the minimal fixtures for a functional system before each scenario
system "RAILS_ENV=test rake db:test:prepare >/dev/null 2>/dev/null"
FactoryGirl.create(:admin) unless User.find_by_login("admin")
FactoryGirl.create(:anonymous) unless AnonymousUser.count > 0
Setting.notified_events = [] #can not test mailer

Loading…
Cancel
Save