10 lines
254 B
Ruby
10 lines
254 B
Ruby
|
# 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
|