Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add 'spec' to the custom Rake::TestTask so it can run either the spec…

… or test directory.
  • Loading branch information...
commit 1bbd890c5a3797dddd5febe5b1021edde11f8dc6 1 parent 0a38f4d
@markbates markbates authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/m.rb
View
3  lib/m.rb
@@ -138,7 +138,8 @@ def parse
require "rake/testtask"
Rake::TestTask.new(:m_custom) do |t|
t.libs << 'test'
- t.pattern = "#{@file}/*test*.rb"
+ t.libs << 'spec'
+ t.test_files = FileList["#{@file}/*test*.rb", "#{@file}/*spec*.rb"]
end
# Invoke the rake task and exit, hopefully it'll work!
Rake::Task['m_custom'].invoke
Please sign in to comment.
Something went wrong with that request. Please try again.