Module: Specjour::DbScrub
Instance Method Summary collapse
Instance Method Details
#drop ⇒ Object
19 20 21 |
# File 'lib/specjour/db_scrub.rb', line 19 def drop Rake::Task['db:drop'].invoke end |
#scrub ⇒ Object
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 |