audit test: modified code for reading json file
This commit is contained in:
parent
c50f7b8951
commit
ff95f08591
@ -81,12 +81,9 @@ module Homebrew
|
||||
|
||||
describe "#audit_license" do
|
||||
let(:spdx_data) {
|
||||
full_path = File.join(File.dirname(__FILE__), "../../data/spdx.json")
|
||||
File.open(full_path, "r") do |f|
|
||||
JSON.parse(f.read)
|
||||
end
|
||||
JSON.parse Pathname(File.join(File.dirname(__FILE__), "../../data/spdx.json")).read
|
||||
}
|
||||
|
||||
|
||||
let(:custom_spdx_id) { "zzz" }
|
||||
let(:standard_mismatch_spdx_id) { "0BSD" }
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user