Sha256: 831bfa013137585d2d1724c2f97230aa49a40ad85192a1ca5983da5a46913fcd

Contents?: true

Size: 657 Bytes

Versions: 3

Compression:

Stored size: 657 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|
  expect result.to_i == @expected_result
end

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-3.0.1 examples/i18n/fr/features/step_definitions/calculatrice_steps.rb
cucumber-3.0.0 examples/i18n/fr/features/step_definitions/calculatrice_steps.rb
cucumber-3.0.0.pre.2 examples/i18n/fr/features/step_definitions/calculatrice_steps.rb