Skip to content

Commit

Permalink
Improve rake spec arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Naiman committed Aug 30, 2017
1 parent 8e2929b commit 61693a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ require 'rake/testtask'

Rake::TestTask.new(:spec) do |t|
t.libs << 'spec'
t.pattern = 'spec/**/*_spec.rb'
t.libs << 'lib'
t.pattern = ENV['DIR'] ? File.join(ENV['DIR'], '**', '*_spec.rb') : 'spec/**/*_spec.rb'
t.verbose = false
t.warning = false
t.loader = nil if ENV['TEST']
Expand Down

0 comments on commit 61693a5

Please sign in to comment.