Sha256: a310907668ffff909e5ae24a356f07b43bf9060c029390bf9800d4ac87a11ca3

Contents?: true

Size: 596 Bytes

Versions: 25

Compression:

Stored size: 596 Bytes

Contents

# encoding: utf-8
begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end 
require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
  @calc = Calculator.new
end

After do
end

Δεδομένου ότι /έχω εισάγει (\d+) στην αριθμομηχανή/ do |n|
  @calc.push n.to_i
end

Όταν /πατάω (\w+)/ do |op|
  @result = @calc.send op
end

Τότε /το αποτέλεσμα στην οθόνη πρέπει να είναι (.*)/ do |result|
  @result.should == result.to_f
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
cucumber-2.99.0 examples/i18n/el/features/step_definitions/calculator_steps.rb
mobiusloop-0.1.5 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-3.0.0.pre.1 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.4.0 examples/i18n/el/features/step_definitions/calculator_steps.rb
mobiusloop-0.1.3 examples/i18n/el/features/step_definitions/calculator_steps.rb
mobiusloop-0.1.2 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.3.3 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.3.2 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.3.1 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.3.0 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.2.0 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.1.0 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.0.2 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.0.1 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.0.0 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.0.0.rc.5 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.0.0.rc.4 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.0.0.rc.3 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.0.0.rc.2 examples/i18n/el/features/step_definitions/calculator_steps.rb
cucumber-2.0.0.rc.1 examples/i18n/el/features/step_definitions/calculator_steps.rb