Sha256: 49f8fc670718c890dd9145b955b94a9b1020e9cc06f3923b3a768621cc5368a4

Contents?: true

Size: 616 Bytes

Versions: 12

Compression:

Stored size: 616 Bytes

Contents

require 'spec' # so we can call .should
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../src') # so the jar is found
require 'dotnet'
loadLibrary 'Cucumber.Demo'

Given /my name is (\w+)/ do |name|
  @hello = Hello.new # A .net object
  @name = name
end

When /I greet (.*)/ do |someone|
  @greeting = @hello.greet(someone, @name)
end

Then /he should hear (.*)\./ do |message|
  @greeting.should == message
end

Then /I should remember (\w+) as a friend/ do |name|
  @hello.isFriend(name).should == true
end

Then /I should get (\w+)'s phone number/ do |name|
  @hello.getPhoneNumber(name).should_not == nil
end

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
aslakhellesoy-cucumber-0.1.10 examples/cs/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.11 examples/cs/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.9 examples/cs/features/step_definitons/hello_steps.rb
elight-cucumber-0.1.9 examples/cs/features/steps/hello_steps.rb
jeffrafter-cucumber-0.1.10 examples/cs/features/step_definitons/hello_steps.rb
jeffrafter-cucumber-0.1.12 examples/cs/features/step_definitons/hello_steps.rb
cucumber-0.1.11 examples/cs/features/step_definitons/hello_steps.rb
cucumber-0.1.10 examples/cs/features/step_definitons/hello_steps.rb
cucumber-0.1.7 examples/cs/features/steps/hello_steps.rb
cucumber-0.1.6 examples/cs/features/steps/hello_steps.rb
cucumber-0.1.8 examples/cs/features/steps/hello_steps.rb
cucumber-0.1.9 examples/cs/features/step_definitons/hello_steps.rb