Skip to content

Commit b2f0c4d

Browse files
committed
Final fix of options for facts
1 parent d4f134b commit b2f0c4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151

5252
describe '#opt_to_fact_file' do
5353
let(:fact_file) { OctocatalogDiff::Spec.fixture_path('facts/facts.yaml') }
54+
5455
let(:fact_answer) do
5556
{
5657
'name' => 'rspec-node.xyz.github.net',
@@ -92,7 +93,7 @@
9293
end
9394

9495
it 'should only define to-fact-file when only --to-fact-file is given' do
95-
result = run_optparse(['--from-fact-file', fact_file])
96+
result = run_optparse(['--to-fact-file', fact_file])
9697
expect(result[:from_facts]).to be_nil
9798
expect(result[:to_facts].facts).to eq(fact_answer)
9899
end

0 commit comments

Comments
 (0)