volanja/ansible_spec

Failures on Ruby 3.1

volanja opened this issue · 3 comments

Failures:

  1) load_playbookの実行 異常系(playbookファイルの中身がない場合) exitする
     Failure/Error: expect{ AnsibleSpec.load_playbook(tmp_pb) }.to raise_error(SystemExit)

       expected SystemExit, got #<NoMethodError: undefined method `each' for nil:NilClass

           playbook.each do |site|
                   ^^^^^> with backtrace:
         # ./lib/ansible_spec/load_ansible.rb:254:in `load_playbook'
         # ./spec/load_ansible_spec.rb:920:in `block (4 levels) in <top (required)>'
         # ./spec/load_ansible_spec.rb:920:in `block (3 levels) in <top (required)>'
     # ./spec/load_ansible_spec.rb:920:in `block (3 levels) in <top (required)>'

Finished in 0.73125 seconds (files took 0.66282 seconds to load)
410 examples, 1 failure

Fixed at #149