Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #8612 - Makes output consistent for deleting act key, BZ1171092 #4854

Merged
merged 1 commit into from Jan 30, 2015

Conversation

cfouant
Copy link
Member

@cfouant cfouant commented Dec 8, 2014

No description provided.

@controller.stubs(:sync_task).returns(true)
delete :destroy, :organization_id => @organization.id, :id => @activation_key.id
assert_sync_task(::Actions::Katello::ActivationKey::Destroy) do |act_key|
act_key.id.must_equal @activation_key.id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should use asserts. The change is to respond with the task instead of a message; however, this test update won't catch this case if this is ever regressed.

@ehelms
Copy link
Member

ehelms commented Jan 15, 2015

Still not sure this is achieving what my previous comment was referring to. Since the change contained within this PR is to respond with the task object instead of a message for consistency, I feel the test should be updated to check that the response from the API is a task object.

@jlsherrill
Copy link
Member

I think what ehelms is saying, is that we should try to somehow assert that the response is rendering with the appropriate template. So you may want to use something like:

assert_template %w(katello/api/v2/common/async)

@ehelms
Copy link
Member

ehelms commented Jan 30, 2015

ACK

cfouant added a commit that referenced this pull request Jan 30, 2015
fixes #8612 - Makes output consistent for deleting act key, BZ1171092
@cfouant cfouant merged commit c019dc0 into Katello:master Jan 30, 2015
@cfouant cfouant deleted the delete-actkey branch January 30, 2015 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants