1
0
mirror of https://github.com/github/choosealicense.com synced 2024-06-26 13:43:03 +02:00
choosealicense.com/spec/license_rules_spec.rb

25 lines
501 B
Ruby
Raw Normal View History

2015-08-22 21:42:12 +02:00
require 'spec_helper'
licenses.each do |license|
groups = rules.keys
describe "The #{license["title"]} license" do
groups.each do |group|
valid_tags = rules[group].map { |r| r["tag"] }
describe "the #{group} group" do
it "should exist" do
expect(license[group]).to_not be_nil
end
it "should only contain valid tags" do
extra = license[group] - valid_tags
expect(extra).to be_empty
end
end
end
end
end