Add ./spec to the LOAD_PATH #27

Merged
merged 2 commits into from Mar 7, 2013
View
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- m (1.2.1)
+ m (1.3.1)
method_source (>= 0.6.7)
rake (>= 0.9.2.2)
@@ -14,7 +14,7 @@ GEM
minitest (2.11.4)
multi_json (1.0.4)
mustache (0.99.4)
- rake (10.0.1)
+ rake (10.0.3)
rdiscount (1.6.8)
redcarpet (2.0.1)
rocco (0.8.2)
View
@@ -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
@@ -211,7 +212,7 @@ def execute
# Finds all test suites in this test file, with test methods included.
def suites
# Since we're not using `ruby -Itest -Ilib` to run the tests, we need to add this directory to the `LOAD_PATH`
- $:.unshift "./test", "./lib"
+ $:.unshift "./test", "./spec", "./lib"
begin
# Fire up this Ruby file. Let's hope it actually has tests.