Sha256: 1d0875f042cae3a395b6977c1b8a4c3532fea5a5bd5e1c96c80e4345d200f60f
Contents?: true
Size: 504 Bytes
Versions: 88
Compression:
Stored size: 504 Bytes
Contents
# encoding: utf-8 require 'spec/expectations' $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project require 'cucumber/formatter/unicode' 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
88 entries across 88 versions & 12 rubygems