Sha256: 02223a605e6a95e1e58c7bb12baa454c30233194dd79b82c40df4980f891e37e

Contents?: true

Size: 648 Bytes

Versions: 24

Compression:

Stored size: 648 Bytes

Contents

# encoding: utf-8
Soit /^une calculatrice$/ do
  @calc = Calculatrice.new
end

Etantdonné /^qu'on tape (.*)$/ do |n|
  @calc.push n.to_i
end

Etantdonné /^que j'entre (\d+) pour le (.*) nombre/ do |n, x|
  @calc.push n.to_i
end

Lorsque /^je tape sur la touche "="$/ do
  @expected_result = @calc.additionner
end

Lorsqu /on tape additionner/ do
  @expected_result = @calc.additionner
end

Alors /le résultat affiché doit être (\d*)/ do |result|
  result.to_i.should == @expected_result
end

Alors /le résultat doit être (\d*)/ do |result|
  result.to_i.should == @expected_result
end

Soit /^que je tape sur la touche "\+"$/ do
  # noop
end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
yard-nrser-cucumber-0.1.3 example/step_definitions/french_steps.rb
yard-nrser-cucumber-0.1.2 example/step_definitions/french_steps.rb
yard-nrser-cucumber-0.1.1 example/step_definitions/french_steps.rb
yard-nrser-cucumber-0.1.0 example/step_definitions/french_steps.rb
yard-cucumber-4.0.0 example/step_definitions/french_steps.rb
yard-cucumber-3.1.0 example/step_definitions/french_steps.rb
yard-cucumber-3.0.0 example/step_definitions/french_steps.rb
yard-cucumber2-2.3.4 example/step_definitions/french_steps.rb
yard-cucumber2-2.3.3 example/step_definitions/french_steps.rb
yard-cucumber-2.3.2 example/step_definitions/french_steps.rb
yard-cucumber-2.3.1 example/step_definitions/french_steps.rb
yard-cucumber-2.3.0 example/step_definitions/french_steps.rb
yard-cucumber-2.2.3 example/step_definitions/french_steps.rb
yard-cucumber-2.2.2 example/step_definitions/french_steps.rb
yard-cucumber-2.2.1 example/step_definitions/french_steps.rb
yard-cucumber-2.2.0 example/step_definitions/french_steps.rb
yard-cucumber-2.1.7 example/step_definitions/french_steps.rb
yard-cucumber-2.1.6 example/step_definitions/french_steps.rb
yard-cucumber-2.1.5 example/step_definitions/french_steps.rb
yard-cucumber-2.1.4 example/step_definitions/french_steps.rb