Sha256: 91ee66b6fbd33da528cb5947bb2a2363255ab2fbb1d19cb1bfc0c7e9e015a0d5
Contents?: true
Size: 444 Bytes
Versions: 7
Compression:
Stored size: 444 Bytes
Contents
# encoding: utf-8 require 'spec/expectations' $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project require 'cucumber/formatters/unicode' 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
7 entries across 7 versions & 1 rubygems