Sha256: 53ac5259570b2114e8a348bd7d59f8cb59f71d3ac74282af8a1a6c06cf7e6eeb

Contents?: true

Size: 499 Bytes

Versions: 22

Compression:

Stored size: 499 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 'kalkulaator'

Before do
  @calc = Kalkulaator.new
end

After do
end

Given /olen sisestanud kalkulaatorisse numbri (\d+)/ do |n|
  @calc.push n.to_i
end

When /ma vajutan (.*)/ do |op|
  @result = @calc.send op
end

Then /vastuseks peab ekraanil kuvatama (\d*)/ do |result|
  @result.should == result.to_i
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
aslakhellesoy-cucumber-0.1.16.5 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.1 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.10 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.11 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.12 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.13 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.14 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.15 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.17 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.18 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.19 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.2 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.20 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.21 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.22 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.3 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.5 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.6 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.7 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.99.8 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb