We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7f1723 commit ddcdccfCopy full SHA for ddcdccf
spec/models/miq_widget_spec.rb
@@ -193,8 +193,8 @@
193
other_region = FactoryBot.create(:miq_region)
194
other_region_id = ApplicationRecord.id_in_region(MiqGroup.count, other_region.region)
195
FactoryBot.create(:miq_group, :id => other_region_id)
196
- allow(MiqGroup.in_my_region.all).to receive(:where).and_return(MiqGroup.in_my_region.all)
197
- @widget_report_vendor_and_guest_os.grouped_subscribers
+ result = @widget_report_vendor_and_guest_os.grouped_subscribers
+ expect(result.keys.collect(&:id).sort).to eq([@group1.id])
198
end
199
200
0 commit comments