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.
-
contextis aliased todescribe -
itis aliased toit -
setupis aliased tobefore -
teardownis 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"