Sha256: 1879a12c70d1603091633d4635d141980085bceced454d1562b1b6a5c34c24ca

Contents?: true

Size: 542 Bytes

Versions: 94

Compression:

Stored size: 542 Bytes

Contents

require 'spec/expectations' # so we can call .should
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

94 entries across 94 versions & 9 rubygems

Version Path
aslakhellesoy-cucumber-0.3.10 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.100 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.101.2 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.101 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.102.1 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.102.2 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.102 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.103 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.104 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.11.1 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.11.200907091518 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.11.3 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.11.5 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.11.6 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.11 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.4 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.5 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.6.1 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.7.1 examples/java/features/step_definitons/hello_steps.rb
aslakhellesoy-cucumber-0.3.7.2 examples/java/features/step_definitons/hello_steps.rb