Sha256: 87113652d7629aa52b9be9e9c578ec26991752e3d8b1a20471a7fb0b3cd69baa
Contents?: true
Size: 518 Bytes
Versions: 123
Compression:
Stored size: 518 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 Zakładając /wprowadzenie do kalkulatora liczby (\d+)/ do |n| @calc.push n.to_i end Jeżeli /nacisnę (\w+)/ do |op| @result = @calc.send op end Wtedy /rezultat (.*) wyświetli się na ekranie/ do |result| @result.should == result.to_f end
Version data entries
123 entries across 119 versions & 13 rubygems