Hi,

I am pretty new to RSpec and I wonder if some code I have written is

leading me in the right direction. Any advice is greatly appreciated!

here is the code from calculator.rb

class Calculator

def equation(val1, val2)

result = val1 + val2

return result

end

end

and here is the code from my calculator_spec.rb

require ‘calculator’

describe Calculator do

it “should perform calculations” do

calc = Calculator.new

result = calc.equation(1, 5)

result.should == 6

end

end