Skip to content

Commit

Permalink
Require 'test/unit' before including/extending things into it.
Browse files Browse the repository at this point in the history
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 committed Jun 3, 2009
1 parent 45cb663 commit 7d9efa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/shoulda/test_unit.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'test/unit'

require 'shoulda/context'
require 'shoulda/proc_extensions'
require 'shoulda/assertions'
Expand Down

0 comments on commit 7d9efa4

Please sign in to comment.