# Copyright (c) 2014 Perforce Software, Inc. All rights reserved. require 'rspec' require 'p4_web_api_client' require_relative 'test_connections' RSpec.describe P4WebApiClient::Client, '#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 RSpec.describe P4WebApiClient::Client, '#update_protections' do it 'should add a protections entry for the user jdoe' do client_as_super do |c| p = c.protections p.protections << 'super user jdoe * //...' c.update_protections(p) loaded = c.protections expect(loaded.protections).to include('super user jdoe * //...') end end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 13972 | tjuricek |
Removing old microservice implementations. The system is now mostly a monolith. Eventually there will be a websocket service. |
||
#2 | 13474 | tjuricek | Corrected regressions that broke the API and Project services specs. | ||
#1 | 13412 | tjuricek |
Initial version of the web-services mainline. This is a collection of several projects, that will likely often get released together, though many of them may not always be relevant. See the README for more information. |