Sha256: 30aafc28d69857a7dcdc1586023a453d4b858f8b77126776bbc24baa9a540ad4

Contents?: true

Size: 481 Bytes

Versions: 2

Compression:

Stored size: 481 Bytes

Contents

# encoding: utf-8
begin
  require 'rspec/expectations'
rescue LoadError
  require 'spec/expectations'
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
require 'lommeregner'

Before do
  @calc = Lommeregner.new
end

After do
end

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

When('jeg lægger sammen') do
  @result = @calc.add
end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cucumber-3.0.1 examples/i18n/da/features/step_definitions/lommeregner_steps.rb
cucumber-3.0.0 examples/i18n/da/features/step_definitions/lommeregner_steps.rb