spec/spec_helper.rb in licensee-9.0.0 vs spec/spec_helper.rb in licensee-9.1.0

- old
+ new

@@ -64,9 +64,15 @@ def format_percent(float) "#{format('%.2f', float)}%" end +def meta_fields + path = 'vendor/choosealicense.com/_data/meta.yml' + path = File.expand_path(path, project_root) + YAML.safe_load(File.read(path)) +end + RSpec::Matchers.define :be_an_existing_file do match { |path| File.exist?(path) } end RSpec::Matchers.define :be_detected_as do |expected|