|
❯ rspec spec/facter/facter_spec.rb:71 |
[Coveralls] Set up the SimpleCov formatter. |
[Coveralls] Using SimpleCov's default settings. |
Run options: include \{:locations=>{"./spec/facter/facter_spec.rb"=>[71]}} |
|
Facter |
#to_user_output |
--strict |
returns no fact and status 1 (FAILED - 1) |
returns one fact and status 0 (FAILED - 2) |
|
Failures: |
|
1) Facter #to_user_output --strict returns no fact and status 1 |
Failure/Error: @block_list = ConfigReader.new(options[:config]).block_list || {} |
|
#<Facter::Options:0x00007fe3128212f0 @options=\{:debug=>false, :trace=>true, :verbose=>false, :log_level=>:warn, :show_legacy=>false, :custom_facts=>false, :custom_dir=>["./custom-facts", "./custom-facts2"], :external_facts=>true, :external_dir=>["./external-facts"], :ruby=>true, :config=>nil}, @priority_options={}, @user_query=["os.name"]> received :[] with unexpected arguments |
expected: (:strict) |
got: (:config) |
Diff: |
@@ -1,2 +1,2 @@ |
-[:strict] |
+[:config] |
|
Please stub a default value first if message might be received with other args as well. |
# ./lib/framework/config/block_list.rb:32:in `load_block_groups' |
# ./lib/framework/config/block_list.rb:11:in `initialize' |
# ./lib/framework/core/options/config_file_options.rb:59:in `augment_facts' |
# ./lib/framework/core/options/config_file_options.rb:14:in `augment_with_config_file_options!' |
# ./lib/framework/core/options.rb:63:in `initialize_options' |
# ./lib/framework/core/options.rb:21:in `refresh' |
# ./lib/facter.rb:112:in `to_user_output' |
# ./spec/facter/facter_spec.rb:85:in `block (4 levels) in <top (required)>' |
|
2) Facter #to_user_output --strict returns one fact and status 0 |
Failure/Error: @block_list = ConfigReader.new(options[:config]).block_list || {} |
|
#<Facter::Options:0x00007fe3128212f0 @options=\{:debug=>false, :trace=>true, :verbose=>false, :log_level=>:warn, :show_legacy=>false, :custom_facts=>false, :custom_dir=>["./custom-facts", "./custom-facts2"], :external_facts=>true, :external_dir=>["./external-facts"], :ruby=>true, :config=>nil}, @priority_options={}, @user_query=["os.name"]> received :[] with unexpected arguments |
expected: (:strict) |
got: (:config) |
Diff: |
@@ -1,2 +1,2 @@ |
-[:strict] |
+[:config] |
|
Please stub a default value first if message might be received with other args as well. |
# ./lib/framework/config/block_list.rb:32:in `load_block_groups' |
# ./lib/framework/config/block_list.rb:11:in `initialize' |
# ./lib/framework/core/options/config_file_options.rb:59:in `augment_facts' |
# ./lib/framework/core/options/config_file_options.rb:14:in `augment_with_config_file_options!' |
# ./lib/framework/core/options.rb:63:in `initialize_options' |
# ./lib/framework/core/options.rb:21:in `refresh' |
# ./lib/facter.rb:112:in `to_user_output' |
# ./spec/facter/facter_spec.rb:101:in `block (4 levels) in <top (required)>' |
|
Finished in 0.02915 seconds (files took 0.4897 seconds to load) |
2 examples, 2 failures |
|
Failed examples: |
|
rspec ./spec/facter/facter_spec.rb:72 # Facter #to_user_output --strict returns no fact and status 1 |
rspec ./spec/facter/facter_spec.rb:89 # Facter #to_user_output --strict returns one fact and status 0 |
|