# frozen_string_literal: true

if defined? RSpec # otherwise fails on non-live environments
  task(:spec).clear
  desc 'Run all specs/features in spec directory'
  RSpec::Core::RakeTask.new(spec: 'db:test:prepare') do |t|
    t.pattern = './spec/**/*{_spec.rb,.feature}'
  end
end
