Sha256: 923e6c6e0dfb879d8b3581c10bad2b05fc9d941e49af78682e20171f6ede03d1
Contents?: true
Size: 329 Bytes
Versions: 17
Compression:
Stored size: 329 Bytes
Contents
require 'spec' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'calculador' Before do @calc = Calculador.new end After do end Given /he introducido (\d+)/ do |n| @calc.push n.to_i end When 'aƱado' do @result = @calc.add end Then /el resultado debe ser (\d*)/ do |result| @result.should == result.to_i end
Version data entries
17 entries across 17 versions & 5 rubygems