lib/itamae-mitsurin/mitsurin/serverspec_task.rb in itamae-mitsurin-0.36 vs lib/itamae-mitsurin/mitsurin/serverspec_task.rb in itamae-mitsurin-0.37

- old
+ new

@@ -63,10 +63,10 @@ specs = "bundle exec rspec" # recipe load to_spec spec_pattern = [] recipes.each do |spec_h| - target_spec = "site-cookbooks/**/#{recipe_h.keys.join}/spec/#{recipe_h[recipe_h.keys.join]}_spec.rb" + target_spec = "site-cookbooks/**/#{spec_h.keys.join}/spec/#{spec_h[spec_h.keys.join]}_spec.rb" Dir.glob(target_spec).join("\s").split.each do |target| unless File.exists?(target) ex_spec = spec_h.to_s.gsub('=>', '::').gsub('"', '') raise "Spec load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_spec}" end