Skip to content

Commit

Permalink
Add a way to run the rake task with a formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
twe4ked committed Jul 28, 2014
1 parent f00d159 commit 9de791c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ The default rake task uses [WWTD] to test multiple versions of RSpec.

``` ruby
rake

# with a formatter
FORMATTER=Nc rake
```

[WWTD]: https://github.com/grosser/wwtd
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'wwtd/tasks'

RSpec::Core::RakeTask.new(:spec)
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = "--format=#{ENV['FORMATTER']}" if ENV['FORMATTER']
end

task :default => :wwtd

0 comments on commit 9de791c

Please sign in to comment.