2020-03-13 15:44:24 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
RSpec.shared_examples 'redirecting a legacy path' do |source, target|
|
2020-03-13 15:44:24 +05:30
|
|
|
include RSpec::Rails::RequestExampleGroup
|
|
|
|
|
|
|
|
it "redirects #{source} to #{target}" do
|
|
|
|
expect(get(source)).to redirect_to(target)
|
|
|
|
end
|
|
|
|
end
|