Sha256: e454993986650971efe3dee8e9b90e6bd14ff8fc2e2ca6503079fde16fe6f739

Contents?: true

Size: 341 Bytes

Versions: 15

Compression:

Stored size: 341 Bytes

Contents

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

Before do
  @calc = Kalkulator.new
end

After do
end

Given /att jag har knappat in (\d+)/ do |n|
  @calc.push n.to_i
end

When 'jag summerar' do
  @result = @calc.add
end

Then /ska resultatet vara (\d+)/ do |result|
  @result.should == result.to_i
end

Version data entries

15 entries across 15 versions & 5 rubygems

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