Sha256: 054d4f2e1bedfd972c69de451dbfc369f4ffab404f542fb39634e44d5e1be271
Contents?: true
Size: 502 Bytes
Versions: 66
Compression:
Stored size: 502 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 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
66 entries across 66 versions & 8 rubygems