Sha256: 95ab26a09f964139c1a244511e9a5f7510ae482c5d5ded08ebf2a14bef180aa6
Contents?: true
Size: 590 Bytes
Versions: 19
Compression:
Stored size: 590 Bytes
Contents
# encoding: utf-8 require 'spec/expectations' $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project require 'cucumber/formatters/unicode' require 'calculatrice' Soit /^une calculatrice$/ do @calc = Calculatrice.new end Et /^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 Alors /le résultat affiché 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
19 entries across 19 versions & 3 rubygems