Sha256: e25bcd5d824fb09a1af451e1d44bd4f4d683fa7459b093b005f5dda6304c1f42
Contents?: true
Size: 546 Bytes
Versions: 9
Compression:
Stored size: 546 Bytes
Contents
# encoding: utf-8 require 'spec/expectations' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'cucumber/formatters/unicode' require 'calculator' Before do @calc = Calculator.new end After do end Given "I have entered $n into the calculator" do |n| @calc.push n.to_i end When /I press (\w+)/ do |op| @result = @calc.send op end Then /the result should be (.*) on the screen/ do |result| @result.should == result.to_f 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