Skip to content

Instantly share code, notes, and snippets.

@safarista
Created October 14, 2011 16:21
Show Gist options
  • Save safarista/1287571 to your computer and use it in GitHub Desktop.
Save safarista/1287571 to your computer and use it in GitHub Desktop.
Is there a reason why you would require then include a resource at the same time? i.e. Assertions
require 'test/unit/assertions'
module Test
module Unit
# remove silly TestCase class
remove_const(:TestCase) if defined?(self::TestCase)
class TestCase < MiniTest::Unit::TestCase
include Assertions
def self.test_order
:sorted
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment