Skip to content

Commit

Permalink
Add tests for symbol conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jun 7, 2024
1 parent 6503541 commit 9b8742b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/facter_db_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,21 @@

context 'without parameters' do
include_examples 'returns a result'
it 'returns symbols as keys in factsets' do
result.each do |factset|
expect(factset.keys).to all(be_an_instance_of(Symbol))
end
end
end

context 'with stringified output' do
let(:symbolize_keys) { false }

it 'returns strings as keys in factsets' do
result.each do |factset|
expect(factset.keys).to all(be_an_instance_of(String))
end
end
end

context 'with an Array filter' do
Expand Down

0 comments on commit 9b8742b

Please sign in to comment.