Sha256: 4dd72fc8cbb1363aa1b094a50391c4c55ba3a8e99b791d0983e75dacdf8b3405

Contents?: true

Size: 262 Bytes

Versions: 3

Compression:

Stored size: 262 Bytes

Contents

# encoding: utf-8

Before do
  @calc = Kalkulator.new
end

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

Når('jeg summerer') do
  @result = @calc.add
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-3.0.1 examples/i18n/no/features/step_definitions/kalkulator_steps.rb
cucumber-3.0.0 examples/i18n/no/features/step_definitions/kalkulator_steps.rb
cucumber-3.0.0.pre.2 examples/i18n/no/features/step_definitions/kalkulator_steps.rb