Sha256: 16b8e79f435bcd353a5847c03c162f74803595af412388f5033be9d5c71c05e5
Contents?: true
Size: 924 Bytes
Versions: 14
Compression:
Stored size: 924 Bytes
Contents
Feature: Named Selectors Scenario: Look within named selector Given a project without ActiveRecord And a cukes resource And I write to "app/views/cukes/index.html.erb" with: """ <div class="foo">foo</div> <div class="bar">bar</div> """ And I write to "features/tests.feature" with: """ Feature: Tests Scenario: Tests When I go to the cukes page Then I should see "foo" within the foo div And I should not see "bar" within the foo div """ And I overwrite "features/support/selectors.rb" with: """ module HtmlSelectorsHelpers def selector_for(locator) return '.foo' if locator == 'the foo div' end end World(HtmlSelectorsHelpers) """ And I run `rake cucumber` Then it should pass with: """ 1 scenario (1 passed) 3 steps (3 passed) """
Version data entries
14 entries across 14 versions & 2 rubygems