Created
March 24, 2023 15:54
-
-
Save bschonec/25e8ddcb1fcf5d6b8befdee9d16c01b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
comment => "Gitlab Server", | |
lane => "d", | |
prefix => "nfiv", | |
node_num => "01", | |
application => "gitlab" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
describe 'test application fact' do
subject(:fact) { Facter.fact(:application) }
before(:each) do
# perform any action that should be run before every test
Facter.clear
end
let(:facts) { { fqdn: 'nfiv-gitlab-01d.example.com' } }
it 'uses the built-in facts to return the application' do
expect(Facter.fact(:application).value).to eq('gitlab') <- the custom fact returns a hash. How do I test for application['application'] ??
end
end