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

Version Path
casecumber-rails-1.0.2.1 features/named_selectors.feature
cucumber-rails-1.0.6 features/named_selectors.feature
cucumber-rails-1.0.5 features/named_selectors.feature
cucumber-rails-1.0.4 features/named_selectors.feature
cucumber-rails-1.0.3 features/named_selectors.feature
cucumber-rails-1.0.2 features/named_selectors.feature
cucumber-rails-1.0.1 features/named_selectors.feature
cucumber-rails-1.0.0 features/named_selectors.feature
cucumber-rails-0.5.2 features/named_selectors.feature
cucumber-rails-0.5.1 features/named_selectors.feature
cucumber-rails-0.5.0 features/named_selectors.feature
cucumber-rails-0.5.0.beta1 features/named_selectors.feature
cucumber-rails-0.4.1 features/named_selectors.feature
cucumber-rails-0.4.0 features/named_selectors.feature