Sha256: 2ce4eb188d86e8d3901b110566b59419dd8121459c0ad6a8b605ed39cd2efc22

Contents?: true

Size: 873 Bytes

Versions: 1

Compression:

Stored size: 873 Bytes

Contents

require 'spec_helper'

module DmPanlex
   describe Md, "Metadata" do
      it "has a property id (md)" do
         should have_property :md
      end
      it "has a property denotation (dn)" do
         should have_property :dn
      end
      it "has a property variable (vb)" do
         should have_property :vb
      end
      it "has a property value" do
         should have_property :vl
      end
      it "is not valid without an id" do
         should validate_presence_of :md
      end
      it "is not valid without a denotation" do
         should validate_presence_of :dn
      end
      it "is not valid without a variable" do
         should validate_presence_of :vb
      end
      it "is not valid without" do
         should validate_presence_of :vl
      end
      it "belongs to a denotation (dn)" do
         should belong_to :dn
      end
   end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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