im new to cucumber, and im having a hard time finding good documentation for ruby with lots of examples
@jobdataAPI
Feature: Submitting a toolbox talk request
Scenario: When submitting with first aid kit with NO selected, open an HR ticket
Given first aid kit NO
Then open an HR ticket
Scenario: When submitting with first aid kit fully stocked NO, open an HR ticket
Given first aid kit fully stocked NO
Then open an HR ticket
Scenario: When submitting fire extinguisher NO, open an HR ticket
Given fire extinguisher NO
Then open an HR ticket
I have a scenario where I am going to have multiple "Then" actions with the same name, but I need to wire up step definitions that have individuality for each Scenario
is it possible to write my step definition with a namespace?
this fails, because Scenario
does not exist as a method
# frozen_string_literal: true
World JOBDATA
Scenario('When submitting with first aid kit with NO selected, open an HR ticket') do
Before do
end
After do
end
Given('first aid kit NO') do
end
Then('open an HR ticket') do
end
end