Skip to content

Commit

Permalink
Pass location to multiline string
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwynne committed Dec 12, 2013
1 parent d402598 commit 0c52120
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cucumber/runtime/support_code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def uri(uri)
end

def step(step)
@support_code.invoke(step.name, Core::Ast::MultilineArgument.from(step.doc_string || step.rows))
location = Cucumber::Core::Ast::Location.new(*caller[0].split(':')[0..1])
@support_code.invoke(step.name, Core::Ast::MultilineArgument.from(step.doc_string || step.rows, location))
end

def eof
Expand Down

0 comments on commit 0c52120

Please sign in to comment.