example/step_definitions/example.step.rb in cucumber-in-the-yard-1.5.3 vs example/step_definitions/example.step.rb in cucumber-in-the-yard-1.5.4

- old
+ new

@@ -8,9 +8,14 @@ Transform /^the customer$/ do |customer| "the transformed customer" end +Transform /^#{TEDDY_BEAR}$/ do |teddy| + "the tranformed teddy bear" +end + + Transform /^((?:\d{1,2}[\/-]){2}(?:\d\d){1,2})?\s*(\w{3})?\s*(\d{1,2}:\d{2}\s*(?:AM|PM)?)$/ do |date,day,time| "#{date} #{day} #{time}" end Given /^that (#{CUSTOMER}) is a valid customer$/ do |customer| \ No newline at end of file