Sha256: bbaec028d1a69fcfc33634ff01d7b7ec5726bc9c353bede48c8a7fa797623fd8

Contents?: true

Size: 702 Bytes

Versions: 2

Compression:

Stored size: 702 Bytes

Contents

require 'spec_helper'

module DmPanlex
   describe Cp, "Approved 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 "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
   end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dm_panlex-0.2.2 spec/dm_panlex/models/cp_spec.rb
dm_panlex-0.2.1 spec/dm_panlex/models/cp_spec.rb