shouldi
shouldi copied to clipboard
Integration tests
shouldi tests follow the pattern of:
test
measure
measure
measure
We would also like to allow tests with the following format:
test1
measure
measure
measure
more-test-1
measure
measure
measure
This test will allow us to do more complex flows and support a better testing structure.
The proposed syntax: instead of with
, we'll use sequentially
, and instead of setup
we'll use step
, like this:
sequentially "an integration test" do
step "description of step one" do
assign do_something_to: :context
end
should_have_key :do_something_to
step "description of step two" do
assign do_something_else_to :context
end
should_have_key :do_something_else_to
end