Sha256: 6d652e6d92c943042e233540233a3c3f235cdaef99599f263a9fa6d142d066ba
Contents?: true
Size: 380 Bytes
Versions: 4
Compression:
Stored size: 380 Bytes
Contents
require 'spec' $:.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
4 entries across 4 versions & 2 rubygems