Sha256: d4a17fdf404c5e40e3b1d48d912affe053e0007b3101772f597ae05deec4a6de

Contents?: true

Size: 456 Bytes

Versions: 45

Compression:

Stored size: 456 Bytes

Contents

# encoding: utf-8
require 'spec/expectations'
$:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
require 'cucumber/formatters/unicode'
require 'kalkulator'

Before do
  @calc = Kalkulator.new
end

After do
end

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

When 'jeg summerer' do
  @result = @calc.add
end

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

Version data entries

45 entries across 45 versions & 4 rubygems

Version Path
aslakhellesoy-cucumber-0.1.99.23 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.1.99.3 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.1.99.5 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.1.99.6 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.1.99.7 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.1.99.8 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.1.99.9 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.2.0.1 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.2.0.2 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.2.0.3 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.2.0.4 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.2.0 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.2.1 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.2.2.1 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
aslakhellesoy-cucumber-0.2.2 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
kosmas58-cucumber-0.1.100.5 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
kosmas58-cucumber-0.1.99.21 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
kosmas58-cucumber-0.1.99.23 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
kosmas58-cucumber-0.2.0.1 examples/i18n/da/features/step_definitons/kalkulator_steps.rb
kosmas58-cucumber-0.2.0 examples/i18n/da/features/step_definitons/kalkulator_steps.rb