Sha256: 601c7c2924add4c060b6cc0104c616f0197b704898e2ccada85a1e6179c71a95

Contents?: true

Size: 461 Bytes

Versions: 15

Compression:

Stored size: 461 Bytes

Contents

require File.join(File.dirname(__FILE__),'..','api_helper')

describe "RhoconnectApiDeleteClient" do
  include_examples "ApiHelper"

  it "should delete client for the user" do
    delete "/rc/#{Rhoconnect::API_VERSION}/users/#{@u_fields[:login]}/clients/#{@c.id}", {}, {Rhoconnect::API_TOKEN_HEADER => @api_token}
    last_response.should be_ok
    Client.is_exist?(@c.id).should == false
    User.load(@u_fields[:login]).clients.members.should == []
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 spec/api/user/delete_client_spec.rb
rhoconnect-7.5.1 spec/api/user/delete_client_spec.rb
rhoconnect-7.4.1 spec/api/user/delete_client_spec.rb
rhoconnect-7.1.17 spec/api/user/delete_client_spec.rb
rhoconnect-6.2.0 spec/api/user/delete_client_spec.rb
rhoconnect-6.0.11 spec/api/user/delete_client_spec.rb
rhoconnect-5.5.18 spec/api/user/delete_client_spec.rb
rhoconnect-5.5.17 spec/api/user/delete_client_spec.rb
rhoconnect-5.5.15 spec/api/user/delete_client_spec.rb
rhoconnect-5.5.0.22 spec/api/user/delete_client_spec.rb
rhoconnect-5.5.2 spec/api/user/delete_client_spec.rb
rhoconnect-5.5.0.7 spec/api/user/delete_client_spec.rb
rhoconnect-5.5.0.3 spec/api/user/delete_client_spec.rb
rhoconnect-5.5.0 spec/api/user/delete_client_spec.rb
rhoconnect-5.1.1 spec/api/user/delete_client_spec.rb