Sha256: 306773fa74f2f2c3a659433db90339bf501ccd1e3ed82f21cb35895ffe9561c1

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 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 '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

2 entries across 2 versions & 1 rubygems

Version Path
cucumber-3.0.1 examples/i18n/sv/features/step_definitions/kalkulator_steps.rb
cucumber-3.0.0 examples/i18n/sv/features/step_definitions/kalkulator_steps.rb