You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- begin
- require 'rspec/expectations'
- rescue LoadError
- require 'spec/expectations'
- end
-
- require 'cucumber/formatter/unicode'
- $LOAD_PATH.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|
- expect(@tulos).to eq(tulos.to_f)
- end
|