-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (20 loc) · 665 Bytes
/
Rakefile
File metadata and controls
28 lines (20 loc) · 665 Bytes
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
# frozen_string_literal: true
require "rake"
require "rspec/core/rake_task"
namespace :spec do
RSpec::Core::RakeTask.new(:all) do |task|
file_list = FileList["spec/**/*_spec.rb"]
task.pattern = file_list
end
RSpec::Core::RakeTask.new(:unit) do |task|
file_list = FileList["spec/**/*_spec.rb"]
file_list = file_list.exclude("spec/{integration,requests}/**/*_spec.rb")
task.pattern = file_list
end
RSpec::Core::RakeTask.new(:requests) do |task|
file_list = FileList["spec/**/*_spec.rb"]
file_list = file_list.exclude("spec/{integration,unit}/**/*_spec.rb")
task.pattern = file_list
end
end
task default: "spec:all"