lib/cucumber/runtime/for_programming_languages.rb in cucumber-2.0.0.rc.1 vs lib/cucumber/runtime/for_programming_languages.rb in cucumber-2.0.0.rc.2
- old
+ new
@@ -42,20 +42,16 @@
# %w{ account description amount },
# %w{ INT-100 Taxi 114 },
# %w{ CUC-101 Peeler 22 }
# ])
#
- def table(text_or_table, file=nil, line_offset=0)
+ def table(text_or_table, file=nil, line=0)
if !file
location = Core::Ast::Location.of_caller
else
location = Core::Ast::Location.new(file, line)
end
- if Array === text_or_table
- MultilineArgument::DataTable.new(text_or_table, location)
- else
- MultilineArgument::DataTable.parse(text_or_table, file, location)
- end
+ MultilineArgument::DataTable.from(text_or_table, location)
end
# Returns a Cucumber::MultilineArgument::DocString for +body+.
#
def doc_string(body, content_type='', line_offset=0)