mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
36 lines
686 B
Ruby
36 lines
686 B
Ruby
module Shoulda
|
|
module Matchers
|
|
module Integrations
|
|
module TestFrameworks
|
|
class Minitest5
|
|
Integrations.register_test_framework(self, :minitest_5)
|
|
Integrations.register_test_framework(self, :minitest)
|
|
|
|
def validate!
|
|
end
|
|
|
|
def include(*modules)
|
|
test_case_class.class_eval do
|
|
include(*modules)
|
|
extend(*modules)
|
|
end
|
|
end
|
|
|
|
def n_unit?
|
|
true
|
|
end
|
|
|
|
def present?
|
|
true
|
|
end
|
|
|
|
private
|
|
|
|
def test_case_class
|
|
Minitest::Test
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|