# frozen_string_literal: true require 'rails_helper' RSpec.describe Company, type: :model do it { should validate_presence_of(:name) } it { should validate_presence_of(:short_name) } it { should validate_presence_of(:country) } it { should validate_uniqueness_of(:short_name).ignoring_case_sensitivity } it { should have_one_attached(:logo) } end