Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The tests don't run.. #15

Open
tlawrence opened this issue Jun 20, 2016 · 0 comments
Open

The tests don't run.. #15

tlawrence opened this issue Jun 20, 2016 · 0 comments

Comments

@tlawrence
Copy link

tlawrence commented Jun 20, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant