-
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
Add MiqRequest factory with MiqApproval #16939
Conversation
@miq-bot add_label wip, test |
@miq-bot remove_label wip |
spec/factories/miq_request.rb
Outdated
source { create(:miq_template) } | ||
|
||
after(:create) do |request, evaluator| | ||
request.miq_approvals << FactoryGirl.create(:miq_approval, :reason => evaluator.reason) |
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.
Should this be a trait instead?
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.
Sure it can! 😉
ping, @tumido ? |
52e04ec
to
c52b959
Compare
Checked commit tumido@c52b959 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
@bdunne : is it ok now? |
Provide a MiqRequest factory which has an MiqApproval. Required to test that
report_data
is capable to query based onreason
.Related: ManageIQ/manageiq-ui-classic#3274