Sha256: e454993986650971efe3dee8e9b90e6bd14ff8fc2e2ca6503079fde16fe6f739
Contents?: true
Size: 341 Bytes
Versions: 15
Compression:
Stored size: 341 Bytes
Contents
require 'spec' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'kalkulator' Before do @calc = Kalkulator.new end After do end Given /att jag har knappat in (\d+)/ do |n| @calc.push n.to_i end When 'jag summerar' do @result = @calc.add end Then /ska resultatet vara (\d+)/ do |result| @result.should == result.to_i end
Version data entries
15 entries across 15 versions & 5 rubygems