module Easytest::DSL
Public Instance Methods
() { (Easytest::Case case) → void } → void
Source
# File sig/easytest.rbs, line 15
def after: () { (Easytest::Case case) -> void } -> void
Run the given block after each test case.
() { (Easytest::Case case) → void } → void
Source
# File sig/easytest.rbs, line 12
def before: () { (Easytest::Case case) -> void } -> void
Run the given block before each test case.
(untyped actual) → Easytest::Expectation
() { () → void } → Easytest::Expectation
Source
# File sig/easytest.rbs, line 24
def expect: (untyped actual) -> Easytest::Expectation
| () { () -> void } -> Easytest::Expectation
Expect the given object or block to satisfy some criterion.
(String name) { () → void } → void
Source
# File sig/easytest.rbs, line 21
def only: (String name) { () -> void } -> void
Run only the given test case.
(String name) { () → void } → void
Source
# File sig/easytest.rbs, line 18
def skip: (String name) { () -> void } -> void
Skip the given test case.
(String name) ?{ () → void } → void
Source
# File sig/easytest.rbs, line 9
def test: (String name) ?{ () -> void } -> void
Define a test case. If omitting a block, the case is considered a to-do.