Skip to content

Commit d4f134b

Browse files
committed
Remove test references to :facts
1 parent 0bee0c3 commit d4f134b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spec/octocatalog-diff/tests/cli/options/fact_file_spec.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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)
@@ -20,7 +20,7 @@
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)
@@ -83,8 +83,6 @@
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

0 commit comments

Comments
 (0)