Sha256: 710264d0dc06a71a572f29627ed19a12fe5c1d537b10da3735bf993c6962004b

Contents?: true

Size: 857 Bytes

Versions: 1

Compression:

Stored size: 857 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 "belongs to an approver (ap)" do
         should belong_to :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

1 entries across 1 versions & 1 rubygems

Version Path
dm_panlex-0.2.0 spec/dm_panlex/models/mn_spec.rb