Module: Specjour::DbScrub

Extended by:
DbScrub
Included in:
DbScrub
Defined in:
lib/specjour/db_scrub.rb

Instance Method Summary collapse

Instance Method Details

#dropObject



19
20
21
# File 'lib/specjour/db_scrub.rb', line 19

def drop
  Rake::Task['db:drop'].invoke
end

#scrubObject



23
24
25
26
27
# File 'lib/specjour/db_scrub.rb', line 23

def scrub
  connect_to_database
  puts "Resetting database #{ENV['TEST_ENV_NUMBER']}"
  schema_load_task.invoke
end