diff --git a/spec/classes/init_spec.rb b/spec/classes/init_spec.rb index eb2d6e6c..b0e0204e 100644 --- a/spec/classes/init_spec.rb +++ b/spec/classes/init_spec.rb @@ -256,7 +256,7 @@ # TODO: This should be generated with something like `lookup('yum::repos').keys`, # but the setup for `Puppet::Pops::Lookup` is to complicated to be worth it as of # this writing (2017-04-11). For now, we just pull from `repos.yaml`. - repos_yaml_data = YAML.load(File.read('./spec/fixtures/modules/yum/data/repos.yaml')) + repos_yaml_data = YAML.safe_load(File.read('./spec/fixtures/modules/yum/data/repos.yaml')) supported_repos = repos_yaml_data['yum::repos'].keys supported_repos.each do |supported_repo|