Sha256: 1e7d68c4c48951082adcbacc070207fe52febd9326d80712b752753afa09207b
Contents?: true
Size: 628 Bytes
Versions: 25
Compression:
Stored size: 628 Bytes
Contents
require 'spec_helper' describe LicenseFinder::License::Ruby do subject { LicenseFinder::License::Ruby.new("") } it_behaves_like "a license matcher" describe "#matches?" do it "should return true when the Ruby license URL is present" do subject.text = "This gem is available under the following license:\nhttp://www.ruby-lang.org/en/LICENSE.txt\nOkay?" should be_matches end it "should return false when the Ruby License URL is not present" do subject.text = "This gem is available under the following license:\nhttp://www.example.com\nOkay?" should_not be_matches end end end
Version data entries
25 entries across 25 versions & 1 rubygems