Sha256: 9a480e1e0ea7771c5537513c957f8725f8b5dcad6583e1f06dc3602be088c05d

Contents?: true

Size: 376 Bytes

Versions: 6

Compression:

Stored size: 376 Bytes

Contents

# http://mislav.uniqpath.com/2010/09/cuking-it-right/

# Then I should see "foo" in the top menu
scopes = {
  'the title' => 'h1, h2, h3',
  'the top menu' => '#top',
  'the action menu' => '#actions',
  'the sidebar' => '#sidebar'
}
scopes.each do |context, selector|
  Then /^(.+) (?:with)?in #{context}$/ do |step|
    within(selector) do
      Then step
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adva-core-0.0.9 lib/testing/step_definitions/within_steps.rb
adva-core-0.0.8 lib/testing/step_definitions/within_steps.rb
adva-core-0.0.7 lib/testing/step_definitions/within_steps.rb
adva-core-0.0.6 lib/testing/step_definitions/within_steps.rb
adva-core-0.0.5 lib/testing/step_definitions/within_steps.rb
adva-core-0.0.4 lib/testing/step_definitions/within_steps.rb