Sha256: fc28af50311683db9fbfe820ed9b9f764782d653172aa9cac8c590943ed6737b

Contents?: true

Size: 464 Bytes

Versions: 57

Compression:

Stored size: 464 Bytes

Contents

require 'spec/expectations'
$:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
require 'Calculator' # Calculator.dll

Before do
  @calc = Demo::Calculator.new # A .NET class in Calculator.dll
end

Given "I have entered $n into the calculator" do |n|
  @calc.push n.to_i
end

When /I press add/ do
  @result = @calc.Add
end

Then /the result should be (.*) on the screen/ do |result|
  @result.should == result.to_i
end

Version data entries

57 entries across 57 versions & 7 rubygems

Version Path
aslakhellesoy-cucumber-0.3.10 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.11.1 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.11.200907091518 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.11.3 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.11.5 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.11.6 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.11 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.4 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.5 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.6.1 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.7.1 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.7.2 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.7.3 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.7.4 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.7.5 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.7 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.8 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.9.1 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.9.2 examples/cs/features/step_definitons/calculator_steps.rb
aslakhellesoy-cucumber-0.3.9.3 examples/cs/features/step_definitons/calculator_steps.rb