Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 6af44d8

Browse files
committed
added an expectation of a 200 code to the `I am at' definition.
1 parent 3d7bdcb commit 6af44d8

File tree

1 file changed

+1
-0
lines changed
  • lib/cucumber/sinatra/templates/features/step_definitions

1 file changed

+1
-0
lines changed

Diff for: lib/cucumber/sinatra/templates/features/step_definitions/web_steps.rbt

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ World(WithinHelpers)
1818

1919
Given /^(?:|I )am on (.+)$/ do |page_name|
2020
visit path_to(page_name)
21+
expect(page.status_code).to eq(200)
2122
end
2223

2324
When /^(?:|I )go to (.+)$/ do |page_name|

0 commit comments

Comments
 (0)