Sha256: 7e8283341274707d822363dded016f4da0bfa7cde2e0ad451d7be634da8ff249
Contents?: true
Size: 564 Bytes
Versions: 16
Compression:
Stored size: 564 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 Задати /унесен број (\d+) у калкулатор/ do |n| @calc.push n.to_i end Када /притиснем (\w+)/ do |op| @result = @calc.send op end Онда /би требало да буде (.*) прикаѕано на екрану/ do |result| @result.to_f == result.to_f end
Version data entries
16 entries across 16 versions & 4 rubygems