We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 281ee2b + 47abe41 commit cdc4b26Copy full SHA for cdc4b26
Rakefile
@@ -3,13 +3,12 @@ require "rubocop/rake_task"
3
RuboCop::RakeTask.new
4
5
targeted_files = ARGV.drop(1)
6
-file_pattern = targeted_files.empty? ? "spec/**/*_spec.rb" : targeted_files
7
8
require "rspec/core"
9
require "rspec/core/rake_task"
10
11
RSpec::Core::RakeTask.new(:spec) do |t|
12
- t.pattern = FileList[file_pattern]
+ t.pattern = targeted_files unless targeted_files.empty?
13
end
14
15
RSpec.configure do |config|
0 commit comments