# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Geo::HashedStorageMigratedEvent, type: :model do
  describe 'relationships' do
    it { is_expected.to belong_to(:project) }
  end

  describe 'validations' do
    it { is_expected.to validate_presence_of(:project) }
    it { is_expected.to validate_presence_of(:repository_storage_name) }
    it { is_expected.to validate_presence_of(:old_disk_path) }
    it { is_expected.to validate_presence_of(:new_disk_path) }
    it { is_expected.to validate_presence_of(:old_wiki_disk_path) }
    it { is_expected.to validate_presence_of(:new_wiki_disk_path) }
    it { is_expected.to validate_presence_of(:new_storage_version) }
  end
end
