diff --git a/Rakefile b/Rakefile index b7e9ed5..3882576 100644 --- a/Rakefile +++ b/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