Sha256: 2f3b4c98ad42d8874ba0cfdf19b679f7ddc92d6fa0b9d86a73eb2b61ed680033
Contents?: true
Size: 494 Bytes
Versions: 45
Compression:
Stored size: 494 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 'calculator' Before do @calc = Calculator.new end After do end Given /aš įvedžiau (\d+) į skaičiuotuvą/ do |n| @calc.push n.to_i end When /aš paspaudžiu "(\w+)"/ do |op| @result = @calc.send op end Then /rezultatas ekrane turi būti (.*)/ do |result| @result.should == result.to_f end
Version data entries
45 entries across 45 versions & 4 rubygems