summaryrefslogtreecommitdiff
path: root/lib/hoe/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hoe/test.rb')
-rw-r--r--lib/hoe/test.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/hoe/test.rb b/lib/hoe/test.rb
index af9ddbc..e959153 100644
--- a/lib/hoe/test.rb
+++ b/lib/hoe/test.rb
@@ -57,6 +57,11 @@ module Hoe::Test
attr_accessor :rspec_options
##
+ # The test task created for this plugin.
+
+ attr_accessor :test_task
+
+ ##
# Initialize variables for plugin.
def initialize_test
@@ -81,7 +86,7 @@ module Hoe::Test
require "minitest/test_task" # currently in hoe, but will move
test_prelude = self.test_prelude
- Minitest::TestTask.create :test do |t|
+ self.test_task = Minitest::TestTask.create :test do |t|
t.test_prelude = test_prelude
t.libs += Hoe.include_dirs.uniq
end