Sha256: 100100f99fa1eaae2cb68fac55f09e5d4cbd12fadc73061dfe878e1136cd6d6a
Contents?: true
Size: 491 Bytes
Versions: 13
Compression:
Stored size: 491 Bytes
Contents
require 'spec' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'kalkulaator' Before do @calc = Kalkulaator.new end After do end Given /olen sisestanud kalkulaatorisse numbri (\d+)/ do |n| @calc.push n.to_i end When /ma vajutan (.*)/ do |op| @result = @calc.send op end Then /vastuseks peab ekraanil kuvatama (\d*)/ do |result| @result.should == result.to_i end Then /vastuseklass peab olema tüüpi (\w*)/ do |class_name| @result.class.name.should == class_name end
Version data entries
13 entries across 13 versions & 4 rubygems