Class: Testem
- Inherits:
-
MiniTest::Spec
- Object
- MiniTest::Spec
- Testem
- Defined in:
- lib/testem.rb
Overview
Aliases often used MiniTest::Spec hooks to Rails-like hooks.
-
context
is aliased todescribe
-
it
is aliased toit
-
setup
is aliased tobefore
-
teardown
is aliased toafter
Example
require 'minitest/autorun'
require 'testem'
class MyTest < Testem
setup do
# before
end
teardown do
# after
end
context "some context" do
test "me" do
# assertions
end
end
end
Constant Summary collapse
- VERSION =
"0.1.0"