spec/spec_helper.rb in licensee-9.16.0 vs spec/spec_helper.rb in licensee-9.16.1
- old
+ new
@@ -107,10 +107,10 @@
end
def meta_fields
path = 'vendor/choosealicense.com/_data/meta.yml'
path = File.expand_path(path, project_root)
- YAML.safe_load(File.read(path))
+ YAML.safe_load_file(path)
end
RSpec::Matchers.define :be_an_existing_file do
match { |path| File.exist?(path) }
end