Sha256: f9406c625ffddad22194f1d8894f8e3b14cd12e600e20946448de0d9d50432bb

Contents?: true

Size: 588 Bytes

Versions: 11

Compression:

Stored size: 588 Bytes

Contents

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

Before do
  @calc = Calculator.new
end

After do
end

Given "ich habe $n in den Taschenrechner eingegeben" do |n|
  @calc.push n.to_i
end

When /ich (\w+) drücke/ do |op|
  @result = @calc.send op
end

Then /sollte das Ergebniss auf dem Bildschirm (.*) sein/ do |result|
  @result.should == result.to_f
end

Then /die Ergebnissklasse sollte eine (\w*) sein/ 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

11 entries across 11 versions & 4 rubygems

Version Path
aslakhellesoy-cucumber-0.1.10 examples/i18n/de/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.11 examples/i18n/de/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.1.12 examples/i18n/de/features/step_definitons/calculator_steps.rb
bts-cucumber-0.1.13.1 examples/i18n/de/features/step_definitons/calculator_steps.rb
bts-cucumber-0.1.13.2 examples/i18n/de/features/step_definitons/calculator_steps.rb
bts-cucumber-0.1.13.3 examples/i18n/de/features/step_definitons/calculator_steps.rb
jeffrafter-cucumber-0.1.10 examples/i18n/de/features/step_definitons/calculator_steps.rb
jeffrafter-cucumber-0.1.12 examples/i18n/de/features/step_definitons/calculator_steps.rb
cucumber-0.1.12 examples/i18n/de/features/step_definitons/calculator_steps.rb
cucumber-0.1.10 examples/i18n/de/features/step_definitons/calculator_steps.rb
cucumber-0.1.11 examples/i18n/de/features/step_definitons/calculator_steps.rb