Sha256: 9d911c2c82c0ce0ed2e0bd8212b02d9ac3e087f6fcf7b3e52080b3f95ee7fcce
Contents?: true
Size: 488 Bytes
Versions: 52
Compression:
Stored size: 488 Bytes
Contents
# encoding: utf-8 begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end require 'cucumber/formatter/unicode' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'calculator' Before do @calc = Calculator.new end After do end Given /Zadám číslo (\d+) do kalkulačky/ do |n| @calc.push n.to_i end When /Stisknu (\w+)/ do |op| @result = @calc.send op end Then /Výsledek by měl být (.*)/ do |result| @result.should == result.to_f end
Version data entries
52 entries across 50 versions & 3 rubygems