Permalink
Browse files

add path and line the step defined at to stepdefs.json

  • Loading branch information...
1 parent fd86ac0 commit e94e76d05febec5500ecf4cf6e8548eb130b61dc @moro committed Jan 13, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/cucumber/runtime.rb
View
@@ -143,6 +143,7 @@ def write_stepdefs_json
end
end
end
+ stepdef_hash['file_colon_line'] = stepdef.file_colon_line
stepdef_hash['steps'] = steps.uniq.sort {|a,b| a['name'] <=> b['name']}
stepdefs << stepdef_hash
end

1 comment on commit e94e76d

That's a great idea! If I understand correctly, this allows various editors to "Go to source" of a step definition while looking at a step? Is that the idea?

Please sign in to comment.