Sha256: 702bbdde2d5ac2fa865929fbe59bea25ca5f67ef44a220676255735969c75ea9

Contents?: true

Size: 794 Bytes

Versions: 2

Compression:

Stored size: 794 Bytes

Contents

require 'spec_helper'

module DmPanlex
   describe Dn, "Denotation" do
      it "has a property id (dn)" do
         should have_property :dn
      end
      it "has a property meaning (mn)" do
         should have_property :mn
      end
      it "has a property expression (ex)" do
         should have_property :ex
      end
      it "is not valid without an id" do
         should validate_presence_of :dn
      end
      it "is not valid without a meaning" do
         should validate_presence_of :mn
      end
      it "is not valid without an expression" do
         should validate_presence_of :ex
      end
      it "has many metadata (md)" do
         should have_many :mds
      end
      it "has many word classifications (wc)" do
         should have_many :wcs
      end
   end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dm_panlex-0.2.2 spec/dm_panlex/models/dn_spec.rb
dm_panlex-0.2.1 spec/dm_panlex/models/dn_spec.rb