Sha256: a93f5d81e8b876d3b3ac1801763021d9e6845d29b547c8cf344742bc9dd7538f
Contents?: true
Size: 463 Bytes
Versions: 14
Compression:
Stored size: 463 Bytes
Contents
# encoding: utf-8 require 'spec/expectations' $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project require 'cucumber/formatter/unicode' require 'lommeregner' Before do @calc = Lommeregner.new end After do end Given /at jeg har indtastet (\d+)/ do |n| @calc.push n.to_i end When 'jeg lægger sammen' do @result = @calc.add end Then /skal resultatet være (\d*)/ do |result| @result.should == result.to_i end
Version data entries
14 entries across 14 versions & 4 rubygems