# Copyright (c) 2014-2015 Perforce Software, Inc. All rights reserved. require_relative './test_config' require 'helix_web_services_client' RSpec.describe HelixWebServicesClient, '#triggers' do it 'should allow us to update and fetch a new example trigger line' do client_as_super do |c| t = c.triggers t.Triggers = [] unless t.Triggers t.triggers << 'cscheck change-submit //depot/... "cmd %changelist%"' c.update_triggers(t) loaded = c.triggers expected_trigger = 'cscheck change-submit //depot/... "cmd %changelist%"' expect(loaded.triggers).to include(expected_trigger) end end it 'should allow us to clear out the triggers table' do client_as_super do |c| triggers = c.triggers triggers.triggers = [] c.update_triggers(triggers) updated = c.triggers expect(updated.triggers).to be(nil) 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/triggers_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/triggers_spec.rb | |||||
#1 | 15228 | tjuricek | Revise triggers implementation, tests, and documentation. | ||
//guest/perforce_software/helix-web-services/main/helix_web_services_client/spec.old/perforce/triggers_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/triggers_spec.rb | |||||
#1 | 13808 | tjuricek | Finish converting most of the core p4d API into the new monolithic system. |