Closed erikedin closed 3 years ago
Alternative 1:
@given("some precondition") do context
end
Alternative 2:
@given "some precondition" context -> begin
end
Is not syntactically correct:
@given "some precondition" do context
end
This fails with
ERROR: LoadError: syntax: invalid "do" syntax
@tk3369 I'll go with alternative 1, unless you have objections.
I agree. Alternative 1 looks good.
Instead of
the user will write