Sha256: faf6c6c5d06f2ca92de2f2615d1482921dbe44fce06b67bd3ca532c40a7d13e2

Contents?: true

Size: 419 Bytes

Versions: 4

Compression:

Stored size: 419 Bytes

Contents

require 'spec'
$:.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

4 entries across 4 versions & 2 rubygems

Version Path
aslakhellesoy-cucumber-0.1.13.2 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
aslakhellesoy-cucumber-0.1.13.3 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
aslakhellesoy-cucumber-0.1.13 examples/i18n/pt/features/step_definitions/calculadora_steps.rb
cucumber-0.1.13 examples/i18n/pt/features/step_definitions/calculadora_steps.rb