Rakefile in bit_player-0.2.5 vs Rakefile in bit_player-0.3.0

- old
+ new

@@ -6,17 +6,16 @@ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) load "rails/tasks/engine.rake" -require 'rspec/core/rake_task' +Bundler::GemHelper.install_tasks -RSpec::Core::RakeTask.new(:spec) +Dir[File.join(File.dirname(__FILE__), "tasks/**/*.rake")].each {|f| load f } -task default: :spec +require 'rspec/core' +require 'rspec/core/rake_task' -task :test do - puts `RAILS_ENV=test rake app:db:drop app:db:create app:db:migrate; rspec` -end +desc "Run all specs in spec directory (excluding plugin specs)" +RSpec::Core::RakeTask.new(:spec => "app:db:test:prepare") -Bundler::GemHelper.install_tasks - +task :default => :spec