Sha256: ad99acfc348b0b037addd1bebf77b2e955635f7e02053c1b077ae7ffb420db63
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 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 'laskin' Before do @laskin = Laskin.new end After do end Given(/että olen syöttänyt laskimeen luvun (\d+)/) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-3.0.1 | examples/i18n/fi/features/step_definitions/laskin_steps.rb |
cucumber-3.0.0 | examples/i18n/fi/features/step_definitions/laskin_steps.rb |