Sha256: 167610864b3e1cb064867b8ea4874b250548ce1fcd8290abf7c2b7bda8eff080
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 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 Given(/I have entered (\d+) into the calculator/) do |n| @calc.push n.to_i end When(/I press (\w+)/) do |op| @result = @calc.send op end Then(/the result should be (.*) on the screen/) do |result| @result.should == result.to_f end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-3.0.0.pre.2 | examples/i18n/en/features/step_definitions/calculator_steps.rb |