Sha256: bcbcfc63f207f3dcd085c77ffe86efb91592f12876fc3f52899d6987d4c5ce46

Contents?: true

Size: 678 Bytes

Versions: 85

Compression:

Stored size: 678 Bytes

Contents

require 'spec/expectations' # 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

85 entries across 85 versions & 6 rubygems

Version Path
aslakhellesoy-cucumber-0.1.100.1 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.100.2 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.100.3 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.100.4 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.100.5 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.14.1 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.14.2 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.15 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.16.1 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.16.2 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.16.3 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.16.4 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.16.5 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.16 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.99.1 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.99.10 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.99.11 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.99.12 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.99.13 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.1.99.14 examples/java/features/step_definitons/hello_steps.rb