Sha256: 885c34d52de53bef15585e5dcdf942ef230f66757b7022a262ba57680cbe46ad

Contents?: true

Size: 450 Bytes

Versions: 13

Compression:

Stored size: 450 Bytes

Contents

# encoding: utf-8
require 'spec/expectations'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
require 'cucumber/formatters/unicode'
require 'calculadora'

Before do
  @calc = Calculadora.new
end

After do
end

Given /que eu digitei (\d+) na calculadora/ do |n|
  @calc.push n.to_i
end

When 'eu aperto o botão de soma' do
  @result = @calc.soma
end

Then /o resultado na calculadora deve ser (\d*)/ do |result|
  @result.should == result.to_i
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
aslakhellesoy-cucumber-0.1.14.1 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
aslakhellesoy-cucumber-0.1.14.2 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
aslakhellesoy-cucumber-0.1.15 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
aslakhellesoy-cucumber-0.1.16.1 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
aslakhellesoy-cucumber-0.1.16.2 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
aslakhellesoy-cucumber-0.1.16.3 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
aslakhellesoy-cucumber-0.1.16.4 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
aslakhellesoy-cucumber-0.1.16 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
kosmas58-cucumber-0.1.16.5 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
kosmas58-cucumber-0.1.16.6 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
cucumber-0.1.14 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
cucumber-0.1.15 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
cucumber-0.1.16 examples/i18n/pt/features/step_definitions/calculadora_steps.rb