Moved rspec-rails declaration to development/test section of Gemfile. now runs tests without having to alter Rakefile.

This commit is contained in:
rebuilt 2022-02-03 16:31:18 +01:00
parent ad14563460
commit f04bc3ebcb
3 changed files with 10 additions and 20 deletions

View file

@ -3,13 +3,3 @@
require_relative 'config/application'
Rails.application.load_tasks
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task(:default).clear
task default: :spec
rescue LoadError => e
raise e unless ENV['RAILS_ENV'] == 'production'
end