Sha256: adef86d0a9882cc00eeab51c25f2e2f6358219d052360f459425f4350a4764ac

Contents?: true

Size: 411 Bytes

Versions: 21

Compression:

Stored size: 411 Bytes

Contents

require 'spec_helper'
require 'ronin/license'

describe License do
  it "should require name and description attributes" do
    license = License.new
    license.should_not be_valid

    license.name = 'joke'
    license.should_not be_valid

    license.description = "yep, it's a joke."
    license.should be_valid
  end

  it "should provide built-in licenses"do
    License.cc_by.should_not be_nil
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ronin-1.5.0 spec/license_spec.rb
ronin-1.5.0.rc2 spec/license_spec.rb
ronin-1.5.0.rc1 spec/license_spec.rb
ronin-1.4.1 spec/license_spec.rb
ronin-1.4.0 spec/license_spec.rb
ronin-1.4.0.rc2 spec/license_spec.rb
ronin-1.4.0.rc1 spec/license_spec.rb
ronin-1.3.0 spec/license_spec.rb
ronin-1.2.0 spec/license_spec.rb
ronin-1.1.0 spec/license_spec.rb
ronin-1.1.0.rc3 spec/license_spec.rb
ronin-1.1.0.rc2 spec/license_spec.rb
ronin-1.1.0.rc1 spec/license_spec.rb
ronin-1.0.0 spec/license_spec.rb
ronin-1.0.0.rc3 spec/license_spec.rb
ronin-1.0.0.rc2 spec/license_spec.rb
ronin-1.0.0.rc1 spec/license_spec.rb
ronin-1.0.0.pre4 spec/license_spec.rb
ronin-1.0.0.pre3 spec/license_spec.rb
ronin-1.0.0.pre2 spec/license_spec.rb