Sha256: d82a33e34765eea3686d08e2a76396a437822024474a625fd9b018dcc8b1bba1

Contents?: true

Size: 526 Bytes

Versions: 14

Compression:

Stored size: 526 Bytes

Contents

require 'spec'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
  @calc = Calculator.new
end

After do
end

Given "$n を入力" do |n|
  @calc.push n.to_i
end

When /(\w+) ボタンを押した/ do |op|
  @result = @calc.send op
end

Then /結果は (.*) を表示/ do |result|
  @result.should == result.to_f
end

Then /結果のクラスは (\w*)/ do |class_name|
  @result.class.name.should == class_name
end

Given /it should rain on (\w+)/ do |day|
  @calc.rain?(day).should == true
end

Version data entries

14 entries across 14 versions & 5 rubygems

Version Path
aslakhellesoy-cucumber-0.1.10 examples/i18n/ja/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.11 examples/i18n/ja/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.12 examples/i18n/ja/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.9 examples/i18n/ja/features/step_definitons/calculator_steps.rb
bts-cucumber-0.1.13.1 examples/i18n/ja/features/step_definitons/calculator_steps.rb
bts-cucumber-0.1.13.2 examples/i18n/ja/features/step_definitons/calculator_steps.rb
bts-cucumber-0.1.13.3 examples/i18n/ja/features/step_definitons/calculator_steps.rb
elight-cucumber-0.1.9 examples/japanese_calculator/features/steps/calculator_steps.rb
jeffrafter-cucumber-0.1.10 examples/i18n/ja/features/step_definitons/calculator_steps.rb
jeffrafter-cucumber-0.1.12 examples/i18n/ja/features/step_definitons/calculator_steps.rb
cucumber-0.1.10 examples/i18n/ja/features/step_definitons/calculator_steps.rb
cucumber-0.1.12 examples/i18n/ja/features/step_definitons/calculator_steps.rb
cucumber-0.1.11 examples/i18n/ja/features/step_definitons/calculator_steps.rb
cucumber-0.1.9 examples/i18n/ja/features/step_definitons/calculator_steps.rb