r-cochran/cuke_sniffer

View on GitHub
examples/simple_project/features/step_definitions/complex_calculator_steps.rb

Summary

Maintainability
A
0 mins
Test Coverage
Given /^the first number is "([^"]*)"$/ do |first_number|
  @first_number = first_number.to_i
end

When /^the second number is "([^"]*)"$/ do |second_number|
  @second_number = second_number.to_i
end

Then /^the result is "([^"]*)"$/ do |result|
  result.to_i.should == @first_number + @second_number
end