Sha256: 245601bb65d1663027287ad10c07fd0b7b297b09d3e6196db8953dc36b12e1c6

Contents?: true

Size: 676 Bytes

Versions: 2

Compression:

Stored size: 676 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
   end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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