summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/routing/legacy_path_redirect_shared_examples.rb
blob: ae3f6425b5ed08bf623116599f4a9680feadbb5f (plain)
1
2
3
4
5
6
7
8
9
# 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