Sha256: 9568342a185f1649fb96597a58ddc4396fdffb5b7457ce5a6710dc4aa20a650a
Contents?: true
Size: 512 Bytes
Versions: 135
Compression:
Stored size: 512 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 'calculator' Before do @calc = Calculator.new end After do end Given /ich habe (\d+) in den Taschenrechner eingegeben/ do |n| @calc.push n.to_i end When /ich (\w+) drücke/ do |op| @result = @calc.send op end Then /sollte das Ergebniss auf dem Bildschirm (.*) sein/ do |result| @result.should == result.to_f end
Version data entries
135 entries across 135 versions & 14 rubygems