Sha256: 35484e0d3eefe475d0f114ef6f9ef76dbeb0f11acabd13b1732666341ae40c03
Contents?: true
Size: 581 Bytes
Versions: 11
Compression:
Stored size: 581 Bytes
Contents
$KCODE='u' require 'spec' $:.unshift(File.dirname(__FILE__) + '/../../lib') 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
11 entries across 11 versions & 4 rubygems