gitlab-org--gitlab-foss/spec/support/shared_examples/routing/legacy_path_redirect_shared...

10 lines
246 B
Ruby

# frozen_string_literal: true
RSpec.shared_examples 'redirecting a legacy path' do |source, target|
include RSpec::Rails::RequestExampleGroup
it "redirects #{source} to #{target}" do
expect(get(source)).to redirect_to(target)
end
end