Sha256: 695918cf7d06af01948c1ae8ebd37a13e5a2e6346510df6630ff6c90ef8f1fe0

Contents?: true

Size: 342 Bytes

Versions: 17

Compression:

Stored size: 342 Bytes

Contents

require 'spec'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
require 'kalkulator'

Before do
  @calc = Kalkulator.new
end

After do
end

Given /at jeg har tastet inn (\d+)/ do |n|
  @calc.push n.to_i
end

When 'jeg summerer' do
  @result = @calc.add
end

Then /skal resultatet være (\d*)/ do |result|
  @result.should == result.to_i
end

Version data entries

17 entries across 17 versions & 5 rubygems

Version Path
aslakhellesoy-cucumber-0.1.10 examples/i18n/no/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.1.11 examples/i18n/no/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.1.12 examples/i18n/no/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.1.9 examples/i18n/no/features/step_definitons/kalkulator_steps.rb
bts-cucumber-0.1.13.1 examples/i18n/no/features/step_definitons/kalkulator_steps.rb
bts-cucumber-0.1.13.2 examples/i18n/no/features/step_definitons/kalkulator_steps.rb
bts-cucumber-0.1.13.3 examples/i18n/no/features/step_definitons/kalkulator_steps.rb
elight-cucumber-0.1.9 examples/norwegian_calculator/features/steps/kalkulator_steps.rb
jeffrafter-cucumber-0.1.10 examples/i18n/no/features/step_definitons/kalkulator_steps.rb
jeffrafter-cucumber-0.1.12 examples/i18n/no/features/step_definitons/kalkulator_steps.rb
cucumber-0.1.10 examples/i18n/no/features/step_definitons/kalkulator_steps.rb
cucumber-0.1.11 examples/i18n/no/features/step_definitons/kalkulator_steps.rb
cucumber-0.1.12 examples/i18n/no/features/step_definitons/kalkulator_steps.rb
cucumber-0.1.8 examples/norwegian_calculator/features/steps/kalkulator_steps.rb
cucumber-0.1.6 examples/norwegian_calculator/features/steps/kalkulator_steps.rb
cucumber-0.1.7 examples/norwegian_calculator/features/steps/kalkulator_steps.rb
cucumber-0.1.9 examples/i18n/no/features/step_definitons/kalkulator_steps.rb