Sha256: 564038b01bcc88fcbfa40a95e61f84f7eb19f71455d03deb7753da1f9c8866cc

Contents?: true

Size: 858 Bytes

Versions: 1

Compression:

Stored size: 858 Bytes

Contents

require 'spec_helper'

module DmPanlex
   describe Wc, "Word classification" do
      it "has a property id (wc)" do
         should have_property :wc
      end
      it "has a property denotation (dn)" do
         should have_property :dn
      end
      it "has a property Panlex word-class expression (ex)" do
         should have_property :ex
      end
      it "is not valid without an id" do
         should validate_presence_of :wc
      end
      it "is not valid without a denotation" do
         should validate_presence_of :dn
      end
      it "is not valid without a Panlex word-class expression" do
         should validate_presence_of :ex
      end
      it "belongs to a denotation (dn)" do
         should belong_to :dn
      end
      it "belongs to a word class expressions (wcex)" do
         should belong_to :wcex
      end
   end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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