Sha256: fc68c7776e525cd064851ae92388ea1005362dad9f8118941e139db744de9114

Contents?: true

Size: 1.77 KB

Versions: 11

Compression:

Stored size: 1.77 KB

Contents

require 'spec_helper'

describe LicenseFinder::License::NewBSD do
  subject { LicenseFinder::License::NewBSD.new("") }

  it_behaves_like "a license matcher"

  it "should match regardless of organization or copyright holder names" do
    license = LicenseFinder::License::NewBSD.new <<-LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.
    * Neither the name of Johnny %$#!.43298432, Guitar INC! nor the
      names of its contributors may be used to endorse or promote products
      derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Johnny %$#!.43298432, Guitar BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    LICENSE

    license.should be_matches
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
license_finder-0.8.2-java spec/lib/license_finder/license/new_bsd_spec.rb
license_finder-0.8.2 spec/lib/license_finder/license/new_bsd_spec.rb
license_finder-0.8.1-java spec/lib/license_finder/license/new_bsd_spec.rb
license_finder-0.8.1 spec/lib/license_finder/license/new_bsd_spec.rb
license_finder-0.8.0-java spec/lib/license_finder/license/new_bsd_spec.rb
license_finder-0.8.0 spec/lib/license_finder/license/new_bsd_spec.rb
license_finder-0.7.3 spec/lib/license_finder/license/new_bsd_spec.rb
license_finder-0.7.1 spec/lib/license_finder/license/new_bsd_spec.rb
license_finder-0.7.0 spec/lib/license_finder/license/new_bsd_spec.rb
license_finder-0.6.0 spec/lib/license_finder/license/new_bsd_spec.rb
license_finder-0.5.0 spec/lib/license_finder/license/new_bsd_spec.rb