spec/cucumber/rb_support/snippet_spec.rb in cucumber-2.3.3 vs spec/cucumber/rb_support/snippet_spec.rb in cucumber-2.4.0
- old
+ new
@@ -47,11 +47,11 @@
@pattern = 'I have 9 "awesome" cukes in 37 "boxes"'
@multiline_argument = Core::Ast::DataTable.new([[]], Core::Ast::Location.new(''))
expect(snippet_text).to eq unindented(%{
Given(/^I have (\\d+) "([^"]*)" cukes in (\\d+) "([^"]*)"$/) do |arg1, arg2, arg3, arg4, table|
- # table is a Cucumber::Core::Ast::DataTable
+ # table is a Cucumber::MultilineArgument::DataTable
pending # Write code here that turns the phrase above into concrete actions
end
})
end
@@ -89,10 +89,10 @@
@pattern = 'A "first" arg'
@multiline_argument = Core::Ast::DataTable.new([[]], Core::Ast::Location.new(""))
expect(snippet_text).to eq unindented(%{
Given(/^A "([^"]*)" arg$/) do |arg1, table|
- # table is a Cucumber::Core::Ast::DataTable
+ # table is a Cucumber::MultilineArgument::DataTable
pending # Write code here that turns the phrase above into concrete actions
end
})
end