Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
miq report result is always tied with miq_task,
so I am adding also to the test enviroment
  • Loading branch information
lpichler committed Jul 5, 2017
1 parent b1d5237 commit 2cc9710
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/helpers/report_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ def create_and_generate_report_for_user(report_name, user_id)
@rpt = MiqReport.where(:name => report_name).last
@rpt.generate_table(:userid => user_id)
report_result = @rpt.build_create_results(:userid => user_id)
miq_task = FactoryGirl.create(:miq_task)
miq_report_result = @rpt.miq_report_results.first
miq_report_result.update_attributes!(:miq_task => miq_task)
report_result.reload
@rpt
end
Expand Down

0 comments on commit 2cc9710

Please sign in to comment.