Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 7d9efa4014015fa8fc5922ad287fbf26973aa822 1 parent 45cb663
Dean Strelau authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/shoulda/test_unit.rb
View
2  lib/shoulda/test_unit.rb
@@ -1,3 +1,5 @@
+require 'test/unit'
+
require 'shoulda/context'
require 'shoulda/proc_extensions'
require 'shoulda/assertions'
Please sign in to comment.
Something went wrong with that request. Please try again.