* Fix coding standards; * Simplify some expectations (eq instead of be matcher); * Expect identity on block instead of calling; * Change some before call as oneliners; * Avoid shadowing variable names; * Improve wording where needed.
10 lines
128 B
Ruby
10 lines
128 B
Ruby
module TestsHelpers
|
|
def test_ok
|
|
double 'test', pass?: true
|
|
end
|
|
|
|
def test_ko
|
|
double 'test', pass?: false
|
|
end
|
|
end
|