Update spec task to accept an example pattern
This commit is contained in:
parent
db70f8b94d
commit
03035a25a5
6
Rakefile
6
Rakefile
@ -1,6 +1,10 @@
|
||||
require "bundler/gem_tasks"
|
||||
require "rspec/core/rake_task"
|
||||
|
||||
RSpec::Core::RakeTask.new(:spec)
|
||||
RSpec::Core::RakeTask.new(:spec, :example_pattern) do |task, args|
|
||||
if args.example_pattern
|
||||
task.rspec_opts = %W[-e "#{args.example_pattern}" -f documentation]
|
||||
end
|
||||
end
|
||||
|
||||
task :default => :spec
|
||||
|
Loading…
x
Reference in New Issue
Block a user