Sha256: 53ac5259570b2114e8a348bd7d59f8cb59f71d3ac74282af8a1a6c06cf7e6eeb
Contents?: true
Size: 499 Bytes
Versions: 22
Compression:
Stored size: 499 Bytes
Contents
# encoding: utf-8 require 'spec/expectations' $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project 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
Version data entries
22 entries across 22 versions & 2 rubygems