Sha256: 5a735e19760fad265f3de62dc728c51bcfd731ac24ccae89cfe6b557601ffc94

Contents?: true

Size: 988 Bytes

Versions: 1

Compression:

Stored size: 988 Bytes

Contents

require 'spec_helper'

module DmPanlex
   describe Df, "Definition" do
      it "has a property id (df)" do
         should have_property :df
      end
      it "has a property meaning (mn)" do
         should have_property :mn
      end
      it "has a property variety of the text (lv)" do
         should have_property :lv
      end
      it "has a property text (tt)" do
         should have_property :tt
      end
      it "is not valid without an id" do
         should validate_presence_of :df
      end
      it "is not valid without a meaning" do
         should validate_presence_of :mn
      end
      it "is not valid without a variety of the text" do
         should validate_presence_of :lv
      end
      it "is not valid without a text" do
         should validate_presence_of :tt
      end
      it "belongs to a language variety (lv)" do
         should belong_to :lv
      end
      it "belongs to a meaning (mn)" do
         should belong_to :mn
      end
   end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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