Skip to content

Enhance visit to support multiple paths [fix #90]#103

Merged
dtognazzini merged 8 commits intomasterfrom
enhanceVisit
May 13, 2015
Merged

Enhance visit to support multiple paths [fix #90]#103
dtognazzini merged 8 commits intomasterfrom
enhanceVisit

Conversation

@ipmsteven
Copy link
Copy Markdown
Contributor

No description provided.

@ipmsteven ipmsteven force-pushed the enhanceVisit branch 2 times, most recently from 4647fed to 200dffc Compare January 2, 2015 22:32
@ipmsteven ipmsteven changed the title Enhance visit to support multiple paths Enhance visit to support multiple paths [fix #90] Apr 29, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RE delete: We should avoid modifying input parameters.

@dtognazzini
Copy link
Copy Markdown
Contributor

Please update the README to document this functionality.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The :via option shouldn't be forwarded to generate_path.

@ipmsteven ipmsteven force-pushed the enhanceVisit branch 3 times, most recently from 20cf1e4 to 5b2bb7e Compare May 5, 2015 05:33
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generate_path should receive the path and the exact same args as passed to visit except for the :via key when present.

Please add tests covering the following invocations:

PageObjects::Books::ShowPage.visit(book, :format => :json)
# should invoke generate_path(<path>, book, :format => :json)

PageObjects::Books::ShowPage.visit(book, :format => :json, :via => :something)
# should invoke generate_path(<path>, book, :format => :json)

PageObjects::Books::ShowPage.visit(something, something_else)
# should invoke generate_path(<path>, something, something_else)

PageObjects::Books::ShowPage.visit(something, something_else, :via => "something")
# should invoke generate_path(<path>, something, something_else)

@ipmsteven ipmsteven force-pushed the enhanceVisit branch 3 times, most recently from 052a7a2 to 4a36744 Compare May 5, 2015 22:47
@dtognazzini
Copy link
Copy Markdown
Contributor

Changes look good! Merge on green.

@dtognazzini
Copy link
Copy Markdown
Contributor

Great!

dtognazzini added a commit that referenced this pull request May 13, 2015
Enhance visit to support multiple paths [fix #90]
@dtognazzini dtognazzini merged commit 15e9b54 into master May 13, 2015
@dtognazzini dtognazzini deleted the enhanceVisit branch May 13, 2015 19:29
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

Successfully merging this pull request may close these issues.

2 participants