Sha256: a93f5d81e8b876d3b3ac1801763021d9e6845d29b547c8cf344742bc9dd7538f

Contents?: true

Size: 463 Bytes

Versions: 14

Compression:

Stored size: 463 Bytes

Contents

# encoding: utf-8
require 'spec/expectations'
$:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
require 'cucumber/formatter/unicode'
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

14 entries across 14 versions & 4 rubygems

Version Path
cucumber-0.5.3 examples/i18n/da/features/step_definitons/lommeregner_steps.rb
cucumber-0.5.2 examples/i18n/da/features/step_definitons/lommeregner_steps.rb
cucumber-0.5.1 examples/i18n/da/features/step_definitons/lommeregner_steps.rb
cucumber-0.5.0 examples/i18n/da/features/step_definitons/lommeregner_steps.rb
cucumber-0.4.5.rc2 examples/i18n/da/features/step_definitons/lommeregner_steps.rb
kbaum-cucumber-0.4.5.pre examples/i18n/da/features/step_definitons/lommeregner_steps.rb
cucumber-0.4.5.rc1 examples/i18n/da/features/step_definitons/lommeregner_steps.rb
middleman-0.10.17 vendor/gems/gems/cucumber-0.4.4/examples/i18n/da/features/step_definitons/lommeregner_steps.rb
middleman-0.10.16 vendor/gems/gems/cucumber-0.4.4/examples/i18n/da/features/step_definitons/lommeregner_steps.rb
middleman-0.10.15 vendor/gems/gems/cucumber-0.4.4/examples/i18n/da/features/step_definitons/lommeregner_steps.rb
rackjour-0.1.8 vendor/gems/gems/cucumber-0.4.4/examples/i18n/da/features/step_definitons/lommeregner_steps.rb
middleman-0.10.14 vendor/gems/gems/cucumber-0.4.4/examples/i18n/da/features/step_definitons/lommeregner_steps.rb
cucumber-0.4.4 examples/i18n/da/features/step_definitons/lommeregner_steps.rb
cucumber-0.4.3 examples/i18n/da/features/step_definitons/lommeregner_steps.rb