Sha256: a310907668ffff909e5ae24a356f07b43bf9060c029390bf9800d4ac87a11ca3
Contents?: true
Size: 596 Bytes
Versions: 25
Compression:
Stored size: 596 Bytes
Contents
# encoding: utf-8 begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end require 'cucumber/formatter/unicode' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'calculator' Before do @calc = Calculator.new end After do end Δεδομένου ότι /έχω εισάγει (\d+) στην αριθμομηχανή/ do |n| @calc.push n.to_i end Όταν /πατάω (\w+)/ do |op| @result = @calc.send op end Τότε /το αποτέλεσμα στην οθόνη πρέπει να είναι (.*)/ do |result| @result.should == result.to_f end
Version data entries
25 entries across 25 versions & 2 rubygems