Skip to content

The tests don't run.. #15

@tlawrence

Description

@tlawrence

Hi,

I am trying to work on some changes but the test suite fails at the moment.

It appears that most tests set up a connection with:

VCloudSdk::Test.mock_session(logger, url)

which passes a mock RestClient to connection.rb:

VCloudSdk::Connection::Connection.new(url, nil, nil, rest_client)

but the rest_client variable is in the wrong order:

initialize(url, request_timeout = nil, rest_client = nil, site = nil, file_uploader = nil, rest_throttle = nil)

updating this to the third parameter passes the RestClient mock object as expected but then it fails because the mock doesn't have a logger stub.

How am I supposed to make tests run? Am I missing something?

Tim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions