Sha256: 85ce68305af407f8abcb8ddd8c0913881076116f7ef4e12bf98d8ebdc2e2193c

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

require 'ronin/license'

require 'helpers/database'

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

1 entries across 1 versions & 1 rubygems

Version Path
ronin-0.3.0 spec/license_spec.rb