Sha256: 5d18619478958e2f8913bce4d3dca9ce6d73e70322d8242834a69451541af17b

Contents?: true

Size: 448 Bytes

Versions: 2

Compression:

Stored size: 448 Bytes

Contents

require 'spec_helper'

module DmPanlex
   describe Mi, "Meaning identifier" do
      it "has a property meaning (mn)" do
         should have_property :mn
      end
      it "has a property text (tt)" do
         should have_property :tt
      end
      it "is not valid without a meaning" do
         should validate_presence_of :mn
      end
      it "is not valid without a text" do
         should validate_presence_of :tt
      end
   end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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