spec/spec_helper.rb in localtower-0.1.3 vs spec/spec_helper.rb in localtower-0.1.4

- old
+ new

@@ -2,9 +2,17 @@ ::Localtower::Tools.sql_drop_all_tables ::Localtower::Generators::Migration.new({}).remove_all_migrations Dir["#{Rails.root}/app/models/**/*.*"].each { |model_file| File.delete(model_file) } end +def migration_files + Dir["#{Rails.root}/db/migrate/*"] +end + +def last_migration + migration_files.sort.last +end + #============================ ENV['RAILS_ENV'] = 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'rspec/rails'