Sha256: 6bddaf6fb1a0fd89a06614a2ed5d53f80fc9485229f6df0c1e57f1b88352928f

Contents?: true

Size: 1.37 KB

Versions: 3

Compression:

Stored size: 1.37 KB

Contents

require 'spec_helper'

module DmPanlex
   describe Us, "User" do
      it "has a property id (us)" do
         should have_property :us
      end
      it "has a property enrollment date (dt)" do
         should have_property :dt
      end
      it "has a property name (nm)" do
         should have_property :nm
      end
      it "has a property alias (al)" do
         should have_property :al
      end
      it "has a property SMPT (Internet mail) address (sm)" do
         should have_property :sm
      end
      it "has a property HTTP (World Wide Web) address (URL) (ht)" do
         should have_property :ht
      end
      it "has a property to show whether it is approved (ok)" do
         should have_property :ok
      end
      it "has a property to show whether it is a Panlex superuser (ad)" do
         should have_property :ad
      end
      it "is not valid without an id" do
         should validate_presence_of :us
      end
      it "is not valid without an enrollment date" do
         should validate_presence_of :dt
      end
      it "is not valid without an alias" do
         should validate_presence_of :al
      end
      it "is not valid without showing whether it is approved" do
         should validate_presence_of :ok
      end
      it "is not valid without showing whether it is a Panlex superuser" do
         should validate_presence_of :ad
      end
   end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dm_panlex-0.2.2 spec/dm_panlex/models/us_spec.rb
dm_panlex-0.2.1 spec/dm_panlex/models/us_spec.rb
dm_panlex-0.2.0 spec/dm_panlex/models/us_spec.rb