Skip to content

Commit

Permalink
Fix rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
saipraveen18 committed Feb 16, 2022
1 parent 707f821 commit 96f0453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/subscriber_inventory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def self.select_filtered_plan_ids(filters = {})
if filters.has_key?(:year)
filter_criteria[:year] = filters[:year]
end
return nil if filter_criteria.empty?
return [] if filter_criteria.empty?

Rails.cache.fetch("plan-ids-#{filter_criteria[:hios_plan_id]}-#{filter_criteria[:year]}", expires_in: 24.hour) do
plans = Plan.where(filter_criteria)
Expand Down
2 changes: 1 addition & 1 deletion spec/models/subscriber_inventory_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
it "returns the coverage history in the format ACA Entities expects" do
expect(Generators::CoverageInformationSerializer).to receive(
:new
).with(person, nil).and_return(coverage_information_serializer)
).with(person, []).and_return(coverage_information_serializer)
expect(SubscriberInventory.coverage_inventory_for(person)).to eq({})
end
end
Expand Down

0 comments on commit 96f0453

Please sign in to comment.