Sha256: eaf079fa12a5da1ac379950c948787490daa670c28602e3f7822576aadf0927b

Contents?: true

Size: 487 Bytes

Versions: 135

Compression:

Stored size: 487 Bytes

Contents

# encoding: utf-8
require 'spec/expectations'
$:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
require 'cucumber/formatter/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

135 entries across 135 versions & 14 rubygems

Version Path
aslakhellesoy-cucumber-0.3.11.200907091518 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.11.3 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.11.5 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.11.6 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.11 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.2 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.3.1 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.3.2 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.3.3 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.3.4 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.3.5 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.3.6 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.3 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.4 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.5 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.6.1 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.7.1 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.7.2 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.7.3 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.3.7.4 examples/i18n/es/features/step_definitons/calculador_steps.rb