spec/requests/legacy_routing_spec.rb in sufia-7.0.0.beta3 vs spec/requests/legacy_routing_spec.rb in sufia-7.0.0.beta4
- old
+ new
@@ -1,5 +1,5 @@
-describe 'Legacy GenericFile routes' do
+describe 'Legacy GenericFile routes', type: :request do
it 'redirects to the work' do
get '/files/gm80hv36p'
expect(response).to redirect_to("/concern/generic_works/gm80hv36p")
expect(response.code).to eq '301' # Moved Permanently
end