-
Notifications
You must be signed in to change notification settings - Fork 900
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
raise_retirement_event called with user object should expect the user info #18471
raise_retirement_event called with user object should expect the user info #18471
Conversation
@d-m-u Cannot apply the following labels because they are not recognized: heck i don't know, specs? is that a thing? |
@d-m-u Cannot apply the following label because they are not recognized: tests |
@miq-bot add_label test |
888be6b
to
6f68836
Compare
The code here: https://github.com/ManageIQ/manageiq/pull/18462/files#diff-5c80c9a5ecc28374ffccc13421a61b65R270 seems to imply to me that if given a user object we should try to find the user. I feel like there should be two specs... 1) with a String of a user that doesn't exist 2) with a String of a user that does exist (this mirrors the 2 specs for when a user object is passed as well) |
Um, there is.
|
I see describe "#raise_retirement_event " do
it "without user" do
it "with string user" do
it "with user object" do
it "with user that isn't found" do I think it needs |
4fc14b3
to
768a7e9
Compare
also don't 🔪 me, bdunne for the admin user create please, if we just seeded specs this ridiculousness would be less of a thing
768a7e9
to
209ba99
Compare
Checked commit d-m-u@209ba99 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, it doesn't make sent to have a find a user if given a user object :)
…ment_specs raise_retirement_event called with user object should expect the user info (cherry picked from commit 2665784)
Hammer backport details:
|
Fixes specs broken by merge of #18462
When raise_retirement_event is called with a string the user information shouldn't be present. It should only be present when we call it with a user object...