Sha256: e2996b496140d96f0e286de066013a74ce130dd49f45181282a144648fda6c57
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
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: Given I am in a project using gurke 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 execute all scenarios Then all scenarios have passed
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gurke-2.4.2 | features/gurke/context_in_hooks.feature |
gurke-2.4.1 | features/gurke/context_in_hooks.feature |
gurke-2.4.0 | features/gurke/context_in_hooks.feature |