require 'rails_helper'

RSpec.describe Library::Publisher, type: :model do
  subject { build(:library_publisher) }

  it { is_expected.to be_valid }

  describe 'associations' do
    it { should belong_to(:school) }
  end

  describe 'validations' do
    it { should validate_presence_of(:name) }
    it { should validate_length_of(:name).is_at_most(255) }
  end
end
