Sha256: 3eae163b463117d79e2d2ef6a27893bea4c74f7408fa9bed0986442a6b92356f
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require 'spec_helper' module DmPanlex describe Ex, "Expression" do it "has a property id (ex)" do should have_property :ex end it "has a property variety (lv)" do should have_property :lv end it "has a property text (tt)" do should have_property :tt end it "has a property degraded text (td)" do should have_property :td end it "is not valid without an id" do should validate_presence_of :ex end it "is not valid without a variety" do should validate_presence_of :lv end it "is not valid without a text" do should validate_presence_of :tt end it "is not valid without a degraded text" do should validate_presence_of :td end it "belongs to a language variety (lv)" do should belong_to :lv end it "has many denotations (dn)" do should have_many :dns end it "has many domain descriptors (dm)" do should have_many :dms end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dm_panlex-0.2.0 | spec/dm_panlex/models/ex_spec.rb |