Sha256: 590bfafabb276663013284ba6da0c37991cc8bf28e75c33a284d23287624b047
Contents?: true
Size: 506 Bytes
Versions: 135
Compression:
Stored size: 506 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 "كتابة $n في الآلة الحاسبة" do |n| @calc.push n.to_i end When /يتم الضغط على (\w+)/ do |op| @result = @calc.send op end Then /يظهر (.*) على الشاشة/ do |result| @result.should == result.to_f end
Version data entries
135 entries across 135 versions & 14 rubygems