Sha256: 651baeefb7d28ef9515595d159ef326980cfc22dfc0517a031f79c477df1a5dd

Contents?: true

Size: 775 Bytes

Versions: 2

Compression:

Stored size: 775 Bytes

Contents

require 'spec_helper'

module DmPanlex
   describe Mn, "Meaning" do
      it "has a property id (mn)" do
         should have_property :mn
      end
      it "has a property approver (ap)" do
         should have_property :ap
      end
      it "is not valid without an id" do
         should validate_presence_of :mn
      end
      it "is not valid without an approver" do
         should validate_presence_of :ap
      end
      it "has many definitions (df)" do
         should have_many :dfs
      end
      it "has many domain descriptors (dm)" do
         should have_many :dms
      end
      it "has many denotations (dn)" do
         should have_many :dns
      end
      it "has many meaning identifier (mi)" do
         should have_many :mis
      end
   end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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