forked from palkan/logidze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
33 lines (26 loc) · 764 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true
require "rspec/core/rake_task"
begin
require "rubocop/rake_task"
RuboCop::RakeTask.new
rescue LoadError
task(:rubocop) {}
end
RSpec::Core::RakeTask.new(:spec)
namespace :dummy do
require_relative "spec/dummy/config/application"
Dummy::Application.load_tasks
end
task(:spec).clear
desc "Run specs other than spec/acceptance"
RSpec::Core::RakeTask.new("spec") do |task|
task.exclude_pattern = "spec/acceptance/**/*_spec.rb"
task.verbose = false
end
desc "Run acceptance specs in spec/acceptance"
RSpec::Core::RakeTask.new("spec:acceptance") do |task|
task.pattern = "spec/acceptance/**/*_spec.rb"
task.verbose = false
end
desc "Run the specs and acceptance tests"
task default: %w[rubocop spec spec:acceptance]