Sha256: 8f76c7f0c9cb3896819548b12da3f969aa6d15500db10c74abde74cfd7276920
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
# encoding: utf-8 begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end require 'cucumber/formatter/unicode' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'calculadora' Before do @calc = Calculadora.new end Donat(/que he introduït (\d+) a la calculadora/) do |n| @calc.push n.to_i end Quan(/premo el (\w+)/) do |op| @result = @calc.send op end Aleshores(/el resultat ha de ser (\d+) a la pantalla/) do |result| @result.should == result.to_f end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-3.0.0.pre.2 | examples/i18n/ca/features/step_definitions/calculator_steps.rb |