Method: Cucumber::Formatter::Query::PickleStepByTestStep#pickle_step_id

Defined in:
lib/cucumber/formatter/query/pickle_step_by_test_step.rb

#pickle_step_id(test_step) ⇒ Object


14
15
16
17
18
# File 'lib/cucumber/formatter/query/pickle_step_by_test_step.rb', line 14

def pickle_step_id(test_step)
  return @pickle_id_step_by_test_step_id[test_step.id] if @pickle_id_step_by_test_step_id.key?(test_step.id)

  raise TestStepUnknownError, "No pickle step found for #{test_step.id} }. Known: #{@pickle_id_step_by_test_step_id.keys}"
end