Sha256: 9faf2d2dd9608d151f0da4595b5d14614bd78660ab16275b9097d9a4c8e936e5

Contents?: true

Size: 379 Bytes

Versions: 4

Compression:

Stored size: 379 Bytes

Contents

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

4 entries across 4 versions & 2 rubygems

Version Path
aslakhellesoy-cucumber-0.1.13.2 examples/i18n/se/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.1.13.3 examples/i18n/se/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.1.13 examples/i18n/se/features/step_definitons/kalkulator_steps.rb
cucumber-0.1.13 examples/i18n/se/features/step_definitons/kalkulator_steps.rb