# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Geo::GroupWikiRepositoryReplicator do
  let(:model_record) { build(:group_wiki_repository, group: create(:group)) }

  include_examples 'a repository replicator'

  describe '.no_repo_message' do
    it 'returns the proper error message for group-level wikis' do
      expect(replicator.class.no_repo_message).to eq(::Gitlab::GitAccessWiki.error_message(:no_group_repo))
    end
  end
end
