Browse files

Require 'test/unit' before including/extending things into it.

On Ruby 1.9, Test::Unit::TestCase subclasses MiniTest::Unit::TestCase. If the true TestCase is not loaded first, you get a "superclass mismatch for class TestCase" because Shoulda defines it without that superclass.
  • Loading branch information...
Dean Strelau
Dean Strelau committed Jun 3, 2009
1 parent 45cb663 commit 7d9efa4014015fa8fc5922ad287fbf26973aa822
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/shoulda/test_unit.rb
@@ -1,3 +1,5 @@
+require 'test/unit'
require 'shoulda/context'
require 'shoulda/proc_extensions'
require 'shoulda/assertions'

0 comments on commit 7d9efa4

Please sign in to comment.