Rakefile in openstax_utilities-2.0.0 vs Rakefile in openstax_utilities-2.1.0

- old
+ new

@@ -1,48 +1,19 @@ #!/usr/bin/env rake +begin + require 'bundler/setup' +rescue LoadError + puts 'You must `gem install bundler` and `bundle install` to run rake tasks' +end -require 'bundler/gem_tasks' +APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) +load 'rails/tasks/engine.rake' -# begin -# require 'bundler/setup' -# rescue LoadError -# puts 'You must `gem install bundler` and `bundle install` to run rake tasks' -# end -# begin -# require 'rdoc/task' -# rescue LoadError -# require 'rdoc/rdoc' -# require 'rake/rdoctask' -# RDoc::Task = Rake::RDocTask -# end +Bundler::GemHelper.install_tasks -# RDoc::Task.new(:rdoc) do |rdoc| -# rdoc.rdoc_dir = 'rdoc' -# rdoc.title = 'OpenstaxUtilities' -# rdoc.options << '--line-numbers' -# rdoc.rdoc_files.include('README.rdoc') -# rdoc.rdoc_files.include('lib/**/*.rb') -# end - -# APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__) - - -# Bundler::GemHelper.install_tasks - -# # require 'rake/testtask' - -# # Rake::TestTask.new(:test) do |t| -# # t.libs << 'lib' -# # t.libs << 'test' -# # t.pattern = 'test/**/*_test.rb' -# # t.verbose = false -# # end - - -# # task :default => :test - +require 'rspec/core' require 'rspec/core/rake_task' -RSpec::Core::RakeTask.new('spec') +desc "Run all specs in spec directory (excluding plugin specs)" +RSpec::Core::RakeTask.new(:spec => 'app:db:test:prepare') -# If you want to make this the default task -task :default => :spec +task :default => :spec \ No newline at end of file