Sha256: 851030a53776d531aa85ed085ddd5c6f242a1ddd55b4b4a4df43f0f50c03fa83

Contents?: true

Size: 503 Bytes

Versions: 45

Compression:

Stored size: 503 Bytes

Contents

# encoding: utf-8
require 'spec/expectations'
$:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
require 'cucumber/formatters/unicode'
require 'calculator'

Before do
  @calc = Calculator.new
end

After do
end

Given /^계산기에 (.*)을 입력했음$/ do |n|
  @calc.push n.to_i
end

When /^내가 (.*)를 누루면$/ do |op|
  @result = @calc.send op
end

Then /^화면에 출력된 결과는 (.*)이다$/ do |result|
  @result.should == result.to_f
end

Version data entries

45 entries across 45 versions & 4 rubygems

Version Path
kosmas58-cucumber-0.2.2.1 examples/i18n/ko/features/step_definitons/calculator_steps.rb
notch8-cucumber-0.1.99.23 examples/i18n/ko/features/step_definitons/calculator_steps.rb
cucumber-0.2.1 examples/i18n/ko/features/step_definitons/calculator_steps.rb
cucumber-0.2.0 examples/i18n/ko/features/step_definitons/calculator_steps.rb
cucumber-0.2.2 examples/i18n/ko/features/step_definitons/calculator_steps.rb