Sha256: d6b2a3d05755db08658f4fa260ee4cece8a62de61a061ccb43f7f85f9125e2a5

Contents?: true

Size: 460 Bytes

Versions: 22

Compression:

Stored size: 460 Bytes

Contents

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

describe "RhoconnectApiDeleteUser" do
  it_should_behave_like "ApiHelper" do  
    it "should delete client" do
      post "/api/client/delete_client", {:api_token => @api_token,
        :user_id => @u_fields[:login], :client_id => @c.id}
      last_response.should be_ok
      Client.is_exist?(@c.id).should == false
      User.load(@u_fields[:login]).clients.members.should == []
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rhoconnect-3.2.1 spec/api/client/delete_client_spec.rb
rhoconnect-3.2.0 spec/api/client/delete_client_spec.rb
rhoconnect-3.2.0.beta5 spec/api/client/delete_client_spec.rb
rhoconnect-3.2.0.beta4 spec/api/client/delete_client_spec.rb
rhoconnect-3.2.0.beta3 spec/api/client/delete_client_spec.rb
rhoconnect-3.2.0.beta2 spec/api/client/delete_client_spec.rb
rhoconnect-3.2.0.beta1 spec/api/client/delete_client_spec.rb
rhoconnect-3.1.2 spec/api/client/delete_client_spec.rb
rhoconnect-3.1.1 spec/api/client/delete_client_spec.rb
rhoconnect-3.1.0 spec/api/client/delete_client_spec.rb
rhoconnect-3.1.0.beta2 spec/api/client/delete_client_spec.rb
rhoconnect-3.1.0.beta1 spec/api/client/delete_client_spec.rb
rhoconnect-3.0.6 spec/api/client/delete_client_spec.rb
rhoconnect-3.0.5 spec/api/client/delete_client_spec.rb
rhoconnect-3.0.4 spec/api/client/delete_client_spec.rb
rhoconnect-3.0.3 spec/api/client/delete_client_spec.rb
rhoconnect-3.0.2 spec/api/client/delete_client_spec.rb
rhoconnect-3.0.1 spec/api/client/delete_client_spec.rb
rhoconnect-3.0.0 spec/api/client/delete_client_spec.rb
rhoconnect-3.0.0.rc1 spec/api/client/delete_client_spec.rb