Sha256: 7e8283341274707d822363dded016f4da0bfa7cde2e0ad451d7be634da8ff249

Contents?: true

Size: 564 Bytes

Versions: 16

Compression:

Stored size: 564 Bytes

Contents

# encoding: utf-8
# require 'spec/expectations'
$:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
require 'cucumber/formatter/unicode'
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.to_f == result.to_f
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
cucumber-0.5.3 examples/i18n/sr/features/step_definitons/calculator_steps.rb
cucumber-0.5.2 examples/i18n/sr/features/step_definitons/calculator_steps.rb
cucumber-0.5.1 examples/i18n/sr/features/step_definitons/calculator_steps.rb
cucumber-0.5.0 examples/i18n/sr/features/step_definitons/calculator_steps.rb
cucumber-0.4.5.rc2 examples/i18n/sr/features/step_definitons/calculator_steps.rb
kbaum-cucumber-0.4.5.pre examples/i18n/sr/features/step_definitons/calculator_steps.rb
cucumber-0.4.5.rc1 examples/i18n/sr/features/step_definitons/calculator_steps.rb
middleman-0.10.17 vendor/gems/gems/cucumber-0.4.4/examples/i18n/sr/features/step_definitons/calculator_steps.rb
middleman-0.10.16 vendor/gems/gems/cucumber-0.4.4/examples/i18n/sr/features/step_definitons/calculator_steps.rb
middleman-0.10.15 vendor/gems/gems/cucumber-0.4.4/examples/i18n/sr/features/step_definitons/calculator_steps.rb
rackjour-0.1.8 vendor/gems/gems/cucumber-0.4.4/examples/i18n/sr/features/step_definitons/calculator_steps.rb
middleman-0.10.14 vendor/gems/gems/cucumber-0.4.4/examples/i18n/sr/features/step_definitons/calculator_steps.rb
cucumber-0.4.4 examples/i18n/sr/features/step_definitons/calculator_steps.rb
cucumber-0.4.3 examples/i18n/sr/features/step_definitons/calculator_steps.rb
cucumber-0.4.2 examples/i18n/sr/features/step_definitons/calculator_steps.rb
cucumber-0.4.1 examples/i18n/sr/features/step_definitons/calculator_steps.rb