Welcome to mirror list, hosted at ThFree Co, Russian Federation.

legacy_path_redirect_shared_examples.rb « routing « shared_examples « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 808336db7b166978646bffe7aed20f041d8eb8c6 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

RSpec.shared_examples 'redirecting a legacy project path' do |source, target|
  include RSpec::Rails::RequestExampleGroup

  it "redirects #{source} to #{target}" do
    expect(get(source)).to redirect_to(target)
  end
end