Closed volanja closed 1 year ago
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
https://github.com/volanja/ansible_spec/actions/runs/3772192941/jobs/6412987537
https://secret-garden.hatenablog.com/entry/2021/05/23/200803
Fixed at https://github.com/volanja/ansible_spec/pull/149