Sha256: b133c94cf830125788c1a339cf53761db74cca4120385ddfe21b4f76c6801d91

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

require 'spec_helper'

module DmPanlex
   describe Cu, "Exemplar characters" do
      it "has a property variety (lv)" do
         should have_property :lv
      end
      it "has a property start of character range (c0)" do
         should have_property :c0
      end
      it "has a property end of character range (c1)" do
         should have_property :c1
      end
      it "has a property locale (loc)" do
         should have_property :loc
      end
      it "has a property variable (vb)" do
         should have_property :vb
      end
      it "is not valid without a variety" do
         should validate_presence_of :lv
      end
      it "is not valid without a start of character range" do
         should validate_presence_of :c0
      end
      it "is not valid without an end of character range" do
         should validate_presence_of :c1
      end
      it "is not valid without a variable" do
         should validate_presence_of :vb
      end
      it "belongs to a language variety (lv)" do
         should belong_to :lv
      end
   end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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