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

Version Path
aslakhellesoy-cucumber-0.1.14.1 examples/i18n/ar/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.14.2 examples/i18n/ar/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.15 examples/i18n/ar/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.16.1 examples/i18n/ar/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.16.2 examples/i18n/ar/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.16.3 examples/i18n/ar/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.16.4 examples/i18n/ar/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.16 examples/i18n/ar/features/step_definitons/calculator_steps.rb
kosmas58-cucumber-0.1.16.5 examples/i18n/ar/features/step_definitons/calculator_steps.rb
kosmas58-cucumber-0.1.16.6 examples/i18n/ar/features/step_definitons/calculator_steps.rb
cucumber-0.1.14 examples/i18n/ar/features/step_definitons/calculator_steps.rb
cucumber-0.1.16 examples/i18n/ar/features/step_definitons/calculator_steps.rb
cucumber-0.1.15 examples/i18n/ar/features/step_definitons/calculator_steps.rb