# Copyright (c) 2014-2015 Perforce Software, Inc. All rights reserved. require_relative './test_config' require 'helix_web_services_client' RSpec.describe 'HelixWebServicesClient protections' do context '#protections' do it 'should return an array with at least two protections' do client_as_super do |c| p = c.protections expect(p.protections.length).to be >= 2 end end end context '#update_protections' do entry = 'super user jdoe * //...' it 'should add a protections entry for the user jdoe' do client_as_super do |c| p = c.protections p.protections << entry c.update_protections(p) loaded = c.protections expect(loaded.protections).to include(entry) end end it 'should remove the protections entry for user jdoe' do client_as_super do |c| p = c.protections p.protections.delete(entry) c.update_protections(p) loaded = c.protections expect(loaded.protections).to_not include(entry) end end end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15741 | ptomiak | Branch HWS for my use. | ||
//guest/perforce_software/helix-web-services/main/source/helix_web_services_client/spec/protections_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/protections_spec.rb | |||||
#1 | 15227 | tjuricek |
Revise implementation, tests, and documentation for protections management. Remove some specs I will not be revising from the helix_web_services project. |
||
//guest/perforce_software/helix-web-services/main/helix_web_services_client/spec.old/perforce/protections_spec.rb | |||||
#1 | 15053 | tjuricek |
Revise the client API to use the new login method. The current specs will need to be revised since data normalization is moving out of the server and into the client. |
||
//guest/perforce_software/helix-web-services/main/helix_web_services_client/spec/perforce/protections_spec.rb | |||||
#1 | 13808 | tjuricek | Finish converting most of the core p4d API into the new monolithic system. |