Sha256: ffff1be143689a062fbbe196a1371571fa74e0d49b8614e1be9dabcf147bc358

Contents?: true

Size: 381 Bytes

Versions: 13

Compression:

Stored size: 381 Bytes

Contents

require 'spec'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
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 & 4 rubygems

Version Path
aslakhellesoy-cucumber-0.1.10 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
aslakhellesoy-cucumber-0.1.11 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
aslakhellesoy-cucumber-0.1.12 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
aslakhellesoy-cucumber-0.1.9 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
bts-cucumber-0.1.13.1 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
bts-cucumber-0.1.13.2 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
bts-cucumber-0.1.13.3 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
jeffrafter-cucumber-0.1.10 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
jeffrafter-cucumber-0.1.12 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
cucumber-0.1.12 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
cucumber-0.1.11 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
cucumber-0.1.10 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
cucumber-0.1.9 examples/i18n/pt/features/step_definitions/calculadora_steps.rb