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