Sha256: b7373b5cf25aaf70a08b2a3c6199674953c25fdd53596788d2b00bf626c59633
Contents?: true
Size: 471 Bytes
Versions: 9
Compression:
Stored size: 471 Bytes
Contents
require 'spec/expectations' $:.unshift(File.dirname(__FILE__) + '/../../lib') 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 Then /the result class should be (\w*)/ do |class_name| @result.class.name.should == class_name end
Version data entries
9 entries across 9 versions & 2 rubygems