File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
spec/octocatalog-diff/tests/cli/options Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 88 fact_file = OctocatalogDiff ::Spec . fixture_path ( 'facts/facts.yaml' )
99 result = run_optparse ( [ '--fact-file' , fact_file ] )
1010 expect ( result [ :node ] ) . to eq ( 'rspec-node.xyz.github.net' )
11- result_facts = result [ :facts ] . facts
11+ result_facts = result [ :to_facts ] . facts
1212 expect ( result_facts ) . to be_a_kind_of ( Hash )
1313 expect ( result_facts [ 'name' ] ) . to eq ( 'rspec-node.xyz.github.net' )
1414 expect ( result_facts [ 'values' ] ) . to be_a_kind_of ( Hash )
2020 fact_file = OctocatalogDiff ::Spec . fixture_path ( 'facts/facts.json' )
2121 result = run_optparse ( [ '--fact-file' , fact_file ] )
2222 expect ( result [ :node ] ) . to eq ( 'rspec-node.xyz.github.net' )
23- result_facts = result [ :facts ] . facts
23+ result_facts = result [ :to_facts ] . facts
2424 expect ( result_facts ) . to be_a_kind_of ( Hash )
2525 expect ( result_facts [ 'name' ] ) . to eq ( 'rspec-node.xyz.github.net' )
2626 expect ( result_facts [ 'values' ] ) . to be_a_kind_of ( Hash )
8383 expect ( result_facts_2 [ 'values' ] [ 'fqdn' ] ) . to eq ( 'rspec-node.xyz.github.net' )
8484 expect ( result_facts_2 [ 'values' ] [ 'ipaddress' ] ) . to eq ( '10.20.30.40' )
8585 expect ( result_facts_2 [ 'values' ] . keys ) . not_to include ( 'expiration' )
86-
87- expect ( result [ :facts ] ) . to eq ( result [ :to_facts ] )
8886 end
8987
9088 it 'should only define from-fact-file when only --from-fact-file is given' do
You can’t perform that action at this time.
0 commit comments