Sha256: e7613450a1819521465c9c45dc1598337c587d0091d947395663c2413b53d2cd

Contents?: true

Size: 990 Bytes

Versions: 11

Compression:

Stored size: 990 Bytes

Contents

Feature: Access context in hooks
  In order to setup specific things
  As a developer
  I want to access meta data of the context in hooks

  Background:
    And a file "features/test.feature" with the following content exists
      """
      Feature: A
        @tag
        Scenario: A
          Then the scenario has tag "tag"

      """
    And a file "features/support/steps/test_steps.rb" with the following content exists
      """
      require 'test/unit/assertions'

      module TestSteps
        include Test::Unit::Assertions

        Then("the scenario has tag \"tag\"") do
          assert @before_tags.include? "tag"
          assert @around_tags.include? "tag"
        end
      end

      Gurke.configure do |c|
        c.include TestSteps

        c.before(:each) { |s| @before_tags = s.tags }
        c.around(:each) { |s| @around_tags = s.tags; s.call }
      end
      """

  Scenario: Assertions should pass
    When I run the tests
    Then all scenarios have passed

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gurke-3.4.0 features/gurke/context_in_hooks.feature
gurke-3.3.5 features/gurke/context_in_hooks.feature
gurke-3.3.4 features/gurke/context_in_hooks.feature
gurke-3.3.3 features/gurke/context_in_hooks.feature
gurke-3.3.2 features/gurke/context_in_hooks.feature
gurke-3.3.1 features/gurke/context_in_hooks.feature
gurke-3.2.2 features/gurke/context_in_hooks.feature
gurke-3.2.1 features/gurke/context_in_hooks.feature
gurke-3.2.0 features/gurke/context_in_hooks.feature
gurke-3.1.0 features/gurke/context_in_hooks.feature
gurke-3.0.0 features/gurke/context_in_hooks.feature