Sha256: bda426482059db36dbb60a15de14488c94958f55eaddc3e0237781094f867242
Contents?: true
Size: 342 Bytes
Versions: 13
Compression:
Stored size: 342 Bytes
Contents
require 'spec' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'calcolatrice' Before do @calc = Calcolatrice.new end After do end Given /che ho inserito (\d+)/ do |n| @calc.push n.to_i end When 'premo somma' do @result = @calc.add end Then /il risultato deve essere (\d*)/ do |result| @result.should == result.to_i end
Version data entries
13 entries across 13 versions & 4 rubygems