Sha256: 2ee482a9eb68e740629e9b00c7c949de49c214e3d2a6e79ffc3c7091c5235548
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 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 Zadato(/Unesen (\d+) broj u kalkulator/) do |n| @calc.push n.to_i end Kada(/pritisnem (\w+)/) do |op| @result = @calc.send op end Onda(/bi trebalo da bude (.*) prikazano na ekranu/) do |result| @result.should == result.to_f end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-3.0.1 | examples/i18n/sr-Latn/features/step_definitions/calculator_steps.rb |
cucumber-3.0.0 | examples/i18n/sr-Latn/features/step_definitions/calculator_steps.rb |