Sha256: 3c0446365e0a7dd3ae4b0f2a0f7942e495c579be1b6174d9cb903c676db8e475
Contents?: true
Size: 515 Bytes
Versions: 4
Compression:
Stored size: 515 Bytes
Contents
require 'spec' $:.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
4 entries across 4 versions & 2 rubygems