f3a0725f2a
The replicator.class.git_access_class.error_message(:no_repo) returns the wrong error message for group wiki repositories. The helper method handle the error message for each datatype. Changelog: fixed EE: true
18 lines
524 B
Ruby
18 lines
524 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe Geo::SnippetRepositoryReplicator do
|
|
let(:snippet) { create(:snippet, :repository) }
|
|
let(:model_record) { snippet.snippet_repository }
|
|
|
|
include_examples 'a repository replicator'
|
|
it_behaves_like 'a verifiable replicator'
|
|
|
|
describe '.no_repo_message' do
|
|
it 'returns the proper error message for snippet repositories' do
|
|
expect(replicator.class.no_repo_message).to eq(::Gitlab::GitAccessSnippet.error_message(:no_repo))
|
|
end
|
|
end
|
|
end
|