-
Notifications
You must be signed in to change notification settings - Fork 372
Open
Labels
good-first-issueGood issue for new contributors to pick upGood issue for new contributors to pick up
Description
Right now, all examples under a resource are flattened to a single list, so tests that have the same example name across different contexts to highlight different behaviors lose this organization. For example, given a test like:
resource "Blog" do
get "/blog/:client_id" do
context "as the page owner" do
before { sign_in }
example_request "responds with 200" do
expect(status).to eq 200
end
end
context "as a visitor" do
example_request "responds with 200" do
expect(status).to eq 200
end
end
end
end
Would generate docs structured like
Blog
- responds with 200
- responds with 200
So the request detail GET /blog/:client
and the context of each example are left out.
This can be worked around with more verbose example descriptions, but would y'all be open to considering an update to the HTML doc writer to include the structure of the tests so the index output is more like
Blog
- GET /blog/:client_id
- as a page owner
- responds with 200
- as a visitor
- responds with 200
jakehow, zorab47 and Anish-K-Das
Metadata
Metadata
Assignees
Labels
good-first-issueGood issue for new contributors to pick upGood issue for new contributors to pick up