Sha256: 7bdb7df618b8fd052c4d00d04b17f862db2238ae24b9e324d1723829831389a4

Contents?: true

Size: 665 Bytes

Versions: 19

Compression:

Stored size: 665 Bytes

Contents

require 'spec' # so we can call .should
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../src') # so the jar is found
require 'cucumber_demo' # puts the jar on the classpath
include_class 'cucumber.demo.Hello'

Given /my name is (\w+)/ do |name|
  @hello = Hello.new # A java 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.friend?(name).should == true
end

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

Version data entries

19 entries across 19 versions & 5 rubygems

Version Path
aslakhellesoy-cucumber-0.1.10 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.11 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.12 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.13.2 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.13.3 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.13 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.9 examples/java/features/step_definitons/hello_steps.rb
bts-cucumber-0.1.13.1 examples/java/features/step_definitons/hello_steps.rb
bts-cucumber-0.1.13.2 examples/java/features/step_definitons/hello_steps.rb
bts-cucumber-0.1.13.3 examples/java/features/step_definitons/hello_steps.rb
elight-cucumber-0.1.9 examples/java/features/steps/hello_steps.rb
jeffrafter-cucumber-0.1.10 examples/java/features/step_definitons/hello_steps.rb
jeffrafter-cucumber-0.1.12 examples/java/features/step_definitons/hello_steps.rb
cucumber-0.1.13 examples/java/features/step_definitons/hello_steps.rb
cucumber-0.1.10 examples/java/features/step_definitons/hello_steps.rb
cucumber-0.1.11 examples/java/features/step_definitons/hello_steps.rb
cucumber-0.1.12 examples/java/features/step_definitons/hello_steps.rb
cucumber-0.1.8 examples/java/features/steps/hello_steps.rb
cucumber-0.1.9 examples/java/features/step_definitons/hello_steps.rb