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

Version Path
aslakhellesoy-cucumber-0.1.100.1 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.100.2 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.100.3 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.100.4 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.100.5 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.10 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.11 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.12 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.13 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.14 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.15 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.17 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.18 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.19 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.20 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.21 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.22 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.23 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.8 examples/i18n/es/features/step_definitons/calculador_steps.rb
aslakhellesoy-cucumber-0.1.99.9 examples/i18n/es/features/step_definitons/calculador_steps.rb