# Copyright (c) 2015 Perforce Software, Inc. All rights reserved. require 'rspec' require 'helix_web_services_client' require_relative './test_config' RSpec.describe HelixWebServicesClient do context '#initialize' do it 'should login to a web services instance' do created = false client_as_jdoe do |c| created = true end expect(created).to be(true) end it 'should throw an unauthenticated error with the wrong login during init' do expect { HelixWebServicesClient.new( url: WS_URL, user: 'jdoe', password: 'totally_invalid', ssl: {verify: false} ) }.to raise_error(Errors::Unauthenticated) end end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15688 | Doug Scheirer |
Populate -o //guest/perforce_software/helix-web-services/... //guest/doug_scheirer/helix-web-services/.... |
||
//guest/perforce_software/helix-web-services/main/source/helix_web_services_client/spec/helix_web_services_client_spec.rb | |||||
#1 | 15622 | tjuricek |
Move source code to 'source/' subdirectory of branch. build/ will remain where it is. |
||
//guest/perforce_software/helix-web-services/main/helix_web_services_client/spec/helix_web_services_client_spec.rb | |||||
#1 | 15059 | tjuricek | Tested authentication of the core /auth/v1/login method. |