Skip to content

Commit

Permalink
Using html as default scope fails with nested steps as in "When I fil…
Browse files Browse the repository at this point in the history
…l in

the following:"

When I fill in the following:                               # features/step_definitions/web_steps.rb:61
      | Standard Letter: | CTA   |
      | Sig. Block:      | JSPRL |
      scope 'html' not found on page (Capybara::ElementNotFound)
  • Loading branch information
Lenny Marks authored and aslakhellesoy committed Jan 13, 2010
1 parent 1b3bf93 commit ec637bd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -5,7 +5,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "pat

module WithinHelpers
def with_scope(locator)
within(locator || 'html') { yield }
locator ? within(locator) { yield } : yield
end
end
World(WithinHelpers)
Expand Down

0 comments on commit ec637bd

Please sign in to comment.