Sha256: 9a1446a580829f749fa10c6e3c070a4797a0a948d2aaaa23aa8e4ea653aa731b
Contents?: true
Size: 414 Bytes
Versions: 72
Compression:
Stored size: 414 Bytes
Contents
require 'spec/expectations' $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project require 'Calculator' Before do @calc = Demo::Calculator.new end Given "I have entered $n into the calculator" do |n| @calc.push n.to_i end When /I press add/ do @result = @calc.Add end Then /the result should be (.*) on the screen/ do |result| @result.should == result.to_i end
Version data entries
72 entries across 72 versions & 6 rubygems