# RSpec Code Examples

Passed Failed Pending

HelixWebServicesClient branches
  should create a new branch - and return it via #branches 0.05125s
  should load a single branch created via #create_branch 0.03014s
  should be able to update the branch description 0.04753s
  should be able to delete a branch created via #create_branch 0.02485s

HelixWebServicesClient changes
  should list change 1 0.02554s
  should describe two files in change 1 0.02270s
  should allow us to integrate 0.03187s
  should allow us to upload two files to //depot/dev/Experimental 0.03833s
  should be able to submit changes shelved on classic clients 0.04983s
  should be able to submit changes shelved on stream clients 0.05407s

HelixWebServicesClient clients
  should create a new client - and return it via #clients 0.02076s
  should load a single client created via #create_client 0.01254s
  'should be able to update the client description'0.02688s
  'should be able to delete a client created via #create_client'0.01827s

HelixWebServicesClient commands

command
  should allow you to run a whitelisted command without input 0.01280s

HelixWebServicesClient config

services
  should allow you to fetch an empty service list 0.01506s

HelixWebServicesClient counters

#set_counter
  can create a numerical counter 0.01003s
  can create a text counter 0.01246s

#counters
  can include our test counters in the list 0.00997s

#counter
  can list our numerical counter 0.00928s
  can list the text counter 0.00976s

#increment_counter
  can increment the numerical counter 0.01560s

#delete_counter
  can delete our test counters 0.01878s

HelixWebServicesClient depots

#create_depot
  should create a new depot - and return it via #depots 0.01587s

#depot
  should load a single depot created via #create_depot 0.01026s

#update_depot
  'should be able to update the depot description'0.02159s

#delete_depot
  'should be able to delete a depot created via #create_depot'0.01492s

HelixWebServicesClient files

#files
  should list the depots with no arguments 0.00930s
  should list 'dev' and 'main' dirs at the /depot path 0.01243s
  should list 'README' at the depot/dev/Experimental path 0.01247s

#upload_file
  should allow me to upload a new README to depot/dev/Experimental 0.02770s

#upload_files
  should allow me to upload the README and a new_file to depot/dev/Experimental 0.04475s

#delete_file
  should allow me to delete a file 0.02734s

HelixWebServicesClient groups

#create_group
  should create a new group - and return it via #groups 0.01683s

#group
  should load a single group created via #create_group 0.01077s

#update_group
  should be able to add a group user 0.02336s

#delete_group
  should be able to delete a group created via #create_group 0.01402s

HelixWebServicesClient Helix Sync

create_helix_sync_client
  should create a new client for a user 0.01254s

create_helix_sync_pending_changelist
  should create or return a pending changelist for a user 0.01852s

fetch_helix_sync_pending_changelist
  should return a pending changelist for a user 0.01462s

fetch_helix_sync_latest_changelist
  should return a latest changelist for a user 0.01105s

submit_helix_sync_pending_change
  should submit a pending change for a project 0.04732s

HelixWebServicesClient

#initialize
  should login to a web services instance 0.00512s
  should throw an unauthenticated error with the wrong login during init 0.00538s

HelixWebServicesClient jobs

#create_job
  should create a new job - and return it via #jobs 0.01521s

#job
  should load a single job created via #create_job 0.01068s

#update_job
  'should be able to change status'0.02335s

#delete_job
  'should be able to delete a job created via #create_job'0.01473s

HelixWebServicesClient labels

#create_label
  should create a new label - and return it via #labels 0.01527s

#label
  should load a single label created via #create_label 0.00918s

#update_label
  'should be able to update the label description'0.02497s

#delete_label
  'should be able to delete a label created via #create_label'0.01622s

HelixWebServicesClient login

#login
  should generate the same ticket 0.01200s

OpenModel
  can find a method with the captialized version of the symbol 0.00017s
  can match a snake_case name with snakeCase 0.00018s
  can find alternatives using [name]_or_[name]0.00020s
  can convert numeric-style strings to Time via [name]_as_time 0.00060s
  can convert string dates to Time via [name]_as_time(offset)0.00226s

HelixWebServicesClient projects

projects
  should not fail when listing projects 0.01002s

HVE Projects
  should list project ids when details are not specified 0.01030s
  should list project details when details are specified 0.01329s

project
  should trigger a 404 when fetching a project by invalid id 0.01009s

HVE Projects
  should fetch my project details 0.00882s

HelixWebServicesClient protections

#protections
  should return an array with at least two protections 0.00939s

#update_protections
  should add a protections entry for the user jdoe 0.02258s
  should remove the protections entry for user jdoe 0.02311s

HelixWebServicesClient servers

#create_server
  should create a new server - and return it via #servers 0.01536s

#server
  should load a single server created via #create_server 0.01128s

#update_server
  'should be able to update the server description'0.02351s

#delete_server
  'should be able to delete a server created via #create_server'0.01647s

HelixWebServicesClient streams
  should create a new stream - and return it via #streams 0.01747s
  should load a single stream created via #create_stream 0.01106s
  should be able to update the stream description 0.01897s
  'should be able to delete a stream created via #create_stream'0.01740s

HelixWebServicesClient#triggers
  should allow us to update and fetch a new example trigger line 0.02253s
  should allow us to clear out the triggers table 0.02112s

HelixWebServicesClient users
  should at least return the 'jdoe' and 'super' users 0.01160s
  should return the user 'mmustermann' who has the name 'Max Mustermann'0.01188s
  should be able to create a new user and load it 0.01919s
  should be able update mmusterman's email to max_power@example.com 0.02739s
  should be able to delete the newuser user 0.01689s