Sha256: 1c57476f958b942f9248c5734213ddae622d544615d8d5579c543d28ec5868a7

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 Bytes

Contents

describe Unidom::Position::Post, type: :model do

  before :each do
  end

  after :each do
  end

  context do

    model_attributes = {
      organization_id:   SecureRandom.uuid,
      organization_type: 'Unidom::Position::Organization::Mock',
      position_id:       SecureRandom.uuid,
      name:              'Some Post'
    }

    it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes

    it_behaves_like 'validates text', model_attributes, :name, length: 2..described_class.columns_hash['name'].limit

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unidom-position-1.5.4 lib/rspec/models/unidom/position/post_spec.rb