examples/tcl/features/step_definitions/fib_steps.rb in cucumber-3.0.0.pre.1 vs examples/tcl/features/step_definitions/fib_steps.rb in cucumber-3.0.0.pre.2
- old
+ new
@@ -1,7 +1,7 @@
-When /^I ask Tcl to calculate fibonacci for (\d+)$/ do |n|
+When(/^I ask Tcl to calculate fibonacci for (\d+)$/) do |n|
@fib_result = @fib.eval("fib #{n}").to_i
end
-Then /^it should give me (\d+)$/ do |expected|
+Then(/^it should give me (\d+)$/) do |expected|
expect(@fib_result).to eq expected.to_i
end