diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2019-05-21 11:35:29 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2019-05-21 11:35:29 +0300 |
commit | 6d3f5a33419a6dd52d4f6378f674e28eb22ad323 (patch) | |
tree | 94fd7a9c57b924f7dced199763d6ae455cfc3af3 /spec/support/shared_examples/legacy_path_redirect_shared_examples.rb | |
parent | 70decdc2acb4da895bdd63bb15b46014045af661 (diff) |
Add legacy routes for modified project path
For settings, branches and tags
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/support/shared_examples/legacy_path_redirect_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/legacy_path_redirect_shared_examples.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/shared_examples/legacy_path_redirect_shared_examples.rb b/spec/support/shared_examples/legacy_path_redirect_shared_examples.rb index f300bdd48b1..f326e502092 100644 --- a/spec/support/shared_examples/legacy_path_redirect_shared_examples.rb +++ b/spec/support/shared_examples/legacy_path_redirect_shared_examples.rb @@ -11,3 +11,11 @@ shared_examples 'redirecting a legacy path' do |source, target| expect(get(source)).not_to redirect_to(target) end end + +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 |