Sha256: b2b55be0e7359d51919480b9a2a89dfc277aa54f1fb1416def7d22f50744d5c7
Contents?: true
Size: 560 Bytes
Versions: 9
Compression:
Stored size: 560 Bytes
Contents
# encoding: utf-8 require 'spec/expectations' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'cucumber/formatters/unicode' 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
9 entries across 9 versions & 2 rubygems