spec/cucumber/step_definition_spec.rb in kosmas58-cucumber-0.2.2.1 vs spec/cucumber/step_definition_spec.rb in kosmas58-cucumber-0.2.3.3
- old
+ new
@@ -80,9 +80,17 @@
pending
end
})
end
+ it "should recognise several quoted words in name and make according regexp and args" do
+ StepDefinition.snippet_text('Given', 'A "first" and "second" arg').should == unindented(%{
+ Given /^A "([^\\"]*)" and "([^\\"]*)" arg$/ do |arg1, arg2|
+ pending
+ end
+ })
+ end
+
it "should not use quote group when there are no quotes" do
StepDefinition.snippet_text('Given', 'A first arg').should == unindented(%{
Given /^A first arg$/ do
pending
end