Sha256: 8f8fb91c60c45b4c85e05ee53376e0bc2bf22e86d32987551e6f3f4e7f3a2cb7

Contents?: true

Size: 449 Bytes

Versions: 4

Compression:

Stored size: 449 Bytes

Contents

# encoding: utf-8
require 'spec/expectations'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
require 'cucumber/formatters/unicode'
require 'laskin'

Before do
  @laskin = Laskin.new
end

After do
end

Given "että olen syöttänyt laskimeen luvun $n" do |n|
  @laskin.pinoa n.to_i
end

When /painan "(\w+)"/ do |op|
  @tulos = @laskin.send op
end

Then /laskimen ruudulla pitäisi näkyä tulos (.*)/ do |tulos|
  @tulos.should == tulos.to_f
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
aslakhellesoy-cucumber-0.1.16.3 examples/i18n/fi/features/step_definitons/laskin_steps.rb
aslakhellesoy-cucumber-0.1.16.4 examples/i18n/fi/features/step_definitons/laskin_steps.rb
kosmas58-cucumber-0.1.16.5 examples/i18n/fi/features/step_definitons/laskin_steps.rb
kosmas58-cucumber-0.1.16.6 examples/i18n/fi/features/step_definitons/laskin_steps.rb