Sha256: 100100f99fa1eaae2cb68fac55f09e5d4cbd12fadc73061dfe878e1136cd6d6a

Contents?: true

Size: 491 Bytes

Versions: 13

Compression:

Stored size: 491 Bytes

Contents

require 'spec'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
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

Then /vastuseklass peab olema tüüpi (\w*)/ do |class_name|
  @result.class.name.should == class_name
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
aslakhellesoy-cucumber-0.1.10 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.11 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.12 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
aslakhellesoy-cucumber-0.1.9 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
bts-cucumber-0.1.13.1 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
bts-cucumber-0.1.13.2 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
bts-cucumber-0.1.13.3 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
jeffrafter-cucumber-0.1.10 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
jeffrafter-cucumber-0.1.12 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
cucumber-0.1.10 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
cucumber-0.1.11 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
cucumber-0.1.12 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
cucumber-0.1.9 examples/i18n/et/features/step_definitions/kalkulaator_steps.rb