spec/spec_helper.rb in kuhsaft-2.0.1 vs spec/spec_helper.rb in kuhsaft-2.0.2

- old
+ new

@@ -33,21 +33,11 @@ config.include CarrierWave::Test::Matchers config.include KuhsaftSpecHelper config.include FactoryGirl::Syntax::Methods config.before :suite do - - load File.expand_path("../dummy/Rakefile", __FILE__) - Dir.chdir(File.join(File.dirname(__FILE__), './dummy')) do - Rake::Task['kuhsaft:install:migrations'].invoke - Rails::Generators.invoke('kuhsaft:install:assets') - end - DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) - # Drop all records and run any available migration - ActiveRecord::Base.connection.tables.each { |table| ActiveRecord::Base.connection.drop_table(table) } - ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) end config.after :suite do # remove migrations? end