Add Rakefile task for running rspec

master
Ryan Rix 2019-12-03 15:29:02 -08:00
parent b2752e6b49
commit 4bf5a7297b
1 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,9 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require_relative 'config/application'
Rails.application.load_tasks
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
rescue LoadError
end