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