Skip to content
Browse files

Only require test/unit if it isn't defined

  • Loading branch information...
1 parent fbd3c78 commit eaa44d3e8d79bf7213f93ece6e692e2cb8f3c8c2 @drapergeek drapergeek committed Oct 12, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/shoulda/context.rb
View
5 lib/shoulda/context.rb
@@ -1,4 +1,7 @@
-require 'test/unit'
+if !defined?(Test::Unit::TestCase)
+ require 'test/unit'
+end
+
require 'shoulda/context/version'
require 'shoulda/context/proc_extensions'
require 'shoulda/context/assertions'

0 comments on commit eaa44d3

Please sign in to comment.
Something went wrong with that request. Please try again.