Sha256: 45a6f74dea5807d87411cedbaa92bde6cd040f8e3de62305961687f402697ae3
Contents?: true
Size: 639 Bytes
Versions: 13
Compression:
Stored size: 639 Bytes
Contents
# encoding: utf-8 require 'spec/expectations' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'cucumber/formatters/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 Then /يجب ان يكون (\w*)/ do |class_name| @result.class.name.should == class_name end Given /it should rain on (\w+)/ do |day| @calc.rain?(day).should == true end
Version data entries
13 entries across 13 versions & 3 rubygems