require 'rails_helper'

RSpec.describe SchoolBranding, type: :model do
  subject { build(:school_branding) }

  it { is_expected.to be_valid }

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

  describe 'validations' do
    it { should validate_presence_of(:color) }
    it do
      should define_enum_for(:color).with_values([
        :red,
        :deep_orange,
        :light_green,
        :green,
        :teal,
        :cyan,
        :light_blue,
        :blue,
        :indigo,
        :deep_purple,
        :purple,
        :pink,
        :brown,
        :grey
      ])
    end
  end
end
