Skip to content

Commit ddcdccf

Browse files
committed
Fix test not making any assertions
1 parent b7f1723 commit ddcdccf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/models/miq_widget_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@
193193
other_region = FactoryBot.create(:miq_region)
194194
other_region_id = ApplicationRecord.id_in_region(MiqGroup.count, other_region.region)
195195
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
196+
result = @widget_report_vendor_and_guest_os.grouped_subscribers
197+
expect(result.keys.collect(&:id).sort).to eq([@group1.id])
198198
end
199199
end
200200

0 commit comments

Comments
 (0)