@with_setup(step_runner_environ)
def test_steps_are_aware_of_its_definitions():
 f = Feature.from_string(FEATURE1)
 feature_result = f.run()
 scenario_result = feature_result.scenario_results[0]
 for step in scenario_result.steps_passed:
  assert step.has_definition
 step1 = scenario_result.steps_passed[0]
 assert_equals(step1.defined_at.line, 124)
 assert_equals(step1.defined_at.file, core.fs.relpath(__file__.rstrip('c')))

@ with_setup ( step_runner_environ ) def test_steps_are_aware_of_its_definitions ( ) : f = Feature . from_string ( FEATURE1 ) feature_result = f . run ( ) scenario_result = feature_result . scenario_results [ 0 ] for step in scenario_result . steps_passed : assert step . has_definition step1 = scenario_result . steps_passed [ 0 ] assert_equals ( step1 . defined_at . line , 124 ) assert_equals ( step1 . defined_at . file , core . fs . relpath ( __file__ . rstrip ( 'c' ) ) )
steps are aware of its definitions line numbers and file names .