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