Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Promote nest_selection to public API as within
Declare `#within` as part of the public interface. Implement it as a thin wrapper around `Assertions::SelectorAssertions#nest_selection`. ```ruby within css_select('.hello') do assert_dom 'p', 'Hello!' end within document_root_element.at('.hello') do assert_dom 'p', 'Hello!' end ```
- Loading branch information
1 parent
8f5acdf
commit 813d4d1
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters