Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration tests #9

Open
batate opened this issue Mar 2, 2015 · 0 comments
Open

Integration tests #9

batate opened this issue Mar 2, 2015 · 0 comments

Comments

@batate
Copy link
Owner

batate commented Mar 2, 2015

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant