Sha256: 4c0bca247ff5850c850cd9bb75e503072002638defbb0c74626da33f83e329ce
Contents?: true
Size: 488 Bytes
Versions: 38
Compression:
Stored size: 488 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 Dado /que he introducido (\d+) en la calculadora/ do |n| @calc.push n.to_i end Cuando /oprimo el (\w+)/ do |op| @result = @calc.send op end Entonces /el resultado debe ser (.*) en la pantalla/ do |result| @result.should == result.to_f end
Version data entries
38 entries across 38 versions & 4 rubygems