Module: CcApiStub::SpaceUsers
  
  
  
  
  
  
  
      - Extended by:
 
      - Helper
 
  
  
  
  
  
  
  
  
    - Defined in:
 
    - lib/cc_api_stub/space_users.rb
 
  
  
 
  
    
      Class Method Summary
      collapse
    
    
  
  
  
  
  
  
  
  
  
  Methods included from Helper
  fail_request, fail_to_load, fail_to_load_many, fail_to_update, fail_with_error, find_fixture, fixture_prefix, host, host=, load_fixtures, object_class, object_name, response, response, stub_delete, stub_get, stub_post, stub_put, stub_request, succeed_to_create, succeed_to_delete, succeed_to_load, succeed_to_load_empty, succeed_to_load_many, succeed_to_update
  
    Class Method Details
    
      
  
  
    .fail_to_delete(options = {})  ⇒ Object 
  
  
  
  
    
      
16
17
18 
     | 
    
      # File 'lib/cc_api_stub/space_users.rb', line 16
def fail_to_delete(options = {})
  stub_delete(object_endpoint(options[:id]), {}, response(500))
end
     | 
  
 
    
      
  
  
    .succeed_to_delete(options = {})  ⇒ Object 
  
  
  
  
    
      
6
7
8
9
10
11
12
13
14 
     | 
    
      # File 'lib/cc_api_stub/space_users.rb', line 6
def succeed_to_delete(options = {})
  if options.has_key? :roles
    options[:roles].each do |role|
      stub_delete(object_endpoint(options[:id], role.to_s.pluralize), {}, response(200, ""))
    end
  end
  stub_delete(object_endpoint(options[:id]), {}, response(200, ""))
end
     |