1 require File.expand_path("#{File.dirname(__FILE__)}/../helper")
3 # This creates steps for :addition
4 steps_for(:addition) do
5 Given("an addend of $addend") do |addend|
11 # This appends to them
12 steps_for(:addition) do
13 When("the addends are added") { @sum = @adder.sum }
16 steps_for(:more_addition) do
17 Then("the sum should be $sum") { |sum| @sum.should == sum.to_i }