Sha256: 695918cf7d06af01948c1ae8ebd37a13e5a2e6346510df6630ff6c90ef8f1fe0
Contents?: true
Size: 342 Bytes
Versions: 17
Compression:
Stored size: 342 Bytes
Contents
require 'spec' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'kalkulator' Before do @calc = Kalkulator.new end After do end Given /at jeg har tastet inn (\d+)/ do |n| @calc.push n.to_i end When 'jeg summerer' do @result = @calc.add end Then /skal resultatet være (\d*)/ do |result| @result.should == result.to_i end
Version data entries
17 entries across 17 versions & 5 rubygems