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

Version Path
aslakhellesoy-cucumber-0.1.10 examples/i18n/ar/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.11 examples/i18n/ar/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.12 examples/i18n/ar/features/step_definitons/calculator_steps.rb
bts-cucumber-0.1.13.1 examples/i18n/ar/features/step_definitons/calculator_steps.rb
bts-cucumber-0.1.13.2 examples/i18n/ar/features/step_definitons/calculator_steps.rb
bts-cucumber-0.1.13.3 examples/i18n/ar/features/step_definitons/calculator_steps.rb
jeffrafter-cucumber-0.1.10 examples/i18n/ar/features/step_definitons/calculator_steps.rb
jeffrafter-cucumber-0.1.12 examples/i18n/ar/features/step_definitons/calculator_steps.rb
cucumber-0.1.12 examples/i18n/ar/features/step_definitons/calculator_steps.rb
cucumber-0.1.10 examples/i18n/ar/features/step_definitons/calculator_steps.rb
cucumber-0.1.11 examples/i18n/ar/features/step_definitons/calculator_steps.rb