Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
(FACT-2498) Add test to check if legacy fact is a wildcard fact.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Irimie committed Mar 31, 2020
1 parent 12c1a02 commit 772a7f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/framework/core/fact_loaders/internal_fact_loader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@
expect(internal_fact_loader.legacy_facts.size).to eq(1)
end

it 'contains a wildcard at the end' do
internal_fact_loader = Facter::InternalFactLoader.new

expect(internal_fact_loader.legacy_facts.first.name.end_with?('.*')).to be_truthy
end

it 'loads no core facts' do
internal_fact_loader = Facter::InternalFactLoader.new

Expand Down

0 comments on commit 772a7f2

Please sign in to comment.