Permalink
Browse files

add credit

  • Loading branch information...
1 parent c06ba8d commit 4ce5e80c9595998feec39b8ec6edb7e964ed2cbf @txus committed Aug 28, 2011
Showing with 13 additions and 3 deletions.
  1. +3 −1 Rakefile
  2. +4 −0 test/support/em-minitest.rb
  3. +6 −2 test/test_helper.rb
View
@@ -1,4 +1,6 @@
-require "bundler/gem_tasks"
+if defined?(Bundler)
+ require "bundler/gem_tasks"
+end
require 'rake/testtask'
desc "Run Domodoro tests"
@@ -1,6 +1,10 @@
require 'rubygems'
require 'eventmachine'
+# Credits to Pete Higgins, the author of this module.
+#
+# https://github.com/phiggins/em-minitest-spec
+#
module EM # :nodoc:
module MiniTest # :nodoc:
module Spec # :nodoc
View
@@ -6,8 +6,12 @@
require 'purdytest'
require 'minitest/autorun'
-Dir['test/support/*.rb'].each do |file|
- require file
+if respond_to?(:require_relative)
+ require_relative 'support/em-minitest.rb'
+else
+ Dir['test/support/em-minitest.rb'].each do |file|
+ require file
+ end
end
require 'domodoro'

0 comments on commit 4ce5e80

Please sign in to comment.