Sha256: 75398cea2ed869c78f0cd291f502eb5f8476caceca6327b137629e6be3ba8499
Contents?: true
Size: 510 Bytes
Versions: 123
Compression:
Stored size: 510 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
123 entries across 119 versions & 13 rubygems