Sha256: 8bd2793246106d2b9c9bed0b062a1e9c9d1b1ed72939d050f5cb5c77a6637c8e

Contents?: true

Size: 634 Bytes

Versions: 2

Compression:

Stored size: 634 Bytes

Contents

require 'spec_helper'

module DmPanlex
   describe Dm, "Domain descriptors" do
      it "has a property id (dm)" do
         should have_property :dm
      end
      it "has a property meaning (mn)" do
         should have_property :mn
      end
      it "has a property expression (ex)" do
         should have_property :ex
      end
      it "is not valid without an id" do
         should validate_presence_of :dm
      end
      it "is not valid without a meaning" do
         should validate_presence_of :mn
      end
      it "is not valid without an 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/dm_spec.rb
dm_panlex-0.2.1 spec/dm_panlex/models/dm_spec.rb