Sha256: 4bc760f57c59c913c8c14a4f5966609cd1b8875337642b505a60c1e731408038
Contents?: true
Size: 411 Bytes
Versions: 13
Compression:
Stored size: 411 Bytes
Contents
# encoding: utf-8 require 'spec/expectations' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'cucumber/formatters/unicode' 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 & 3 rubygems