Sha256: 7c0e08c70ca98aba23f9870a2eac3ba2e4113aa8c3f12a1df02a19cf02d237b8
Contents?: true
Size: 589 Bytes
Versions: 127
Compression:
Stored size: 589 Bytes
Contents
# encoding: utf-8 require 'spec/expectations' $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project require 'cucumber/formatter/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
127 entries across 127 versions & 13 rubygems