Sha256: aa9aba64ad526336aa400eb5dab724b111377681eeeff110bd3a858bd96765cb

Contents?: true

Size: 756 Bytes

Versions: 1

Compression:

Stored size: 756 Bytes

Contents

Given /^i'm connected to an OpenERP server$/ do
  logger = Logger.new(File.open("/dev/null", 'w'))
  @config = Kangaroo::Util::Configuration.new 'features/support/test.yml', logger
  @config.login
end

Given /^setup a proxy to "([^"]*)"$/ do |service|  
  proxy = Kangaroo::Util::Proxy.const_get(service.camelize).new @config.client.send("#{service}_service")
  self.instance_variable_set "@#{service}", proxy
end

When /^i call (.*)\.(.*)$/ do |service, method|
  proxy = instance_variable_get "@#{service}"
  @result = proxy.__send__ method
  puts @result.inspect
end

Then /^i should see "([^"]*)"$/ do |arg1|
  @result.should include(arg1)
end

Then /^the list should include "([^"]*)"$/ do |arg1|
  @result.flatten.join("\n").should include(arg1)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kangaroo-0.0.1.pre features/step_definitions/basic_steps.rb