spec/api/user/delete_client_spec.rb in rhoconnect-4.0.4 vs spec/api/user/delete_client_spec.rb in rhoconnect-5.1.1

- old
+ new

@@ -1,12 +1,12 @@ require File.join(File.dirname(__FILE__),'..','api_helper') describe "RhoconnectApiDeleteClient" do - it_should_behave_like "ApiHelper" do - 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 + 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 \ No newline at end of file