Skip to content
Snippets Groups Projects
Commit f27b4689 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

Merge branch 'submissions-fix' into 'master'

change route to show submission

See merge request portalmec/portalmec!484
parents ad6d2312 3621c514
No related branches found
No related tags found
No related merge requests found
...@@ -79,11 +79,11 @@ Rails.application.routes.draw do ...@@ -79,11 +79,11 @@ Rails.application.routes.draw do
concern :submission do concern :submission do
collection do collection do
get :submissions get :submissions
get 'submissions/:id', action: :show_submission
end end
member do member do
post :submit post :submit
get :show_submission
end end
end end
......
...@@ -234,7 +234,7 @@ resource 'Learning Objects' do ...@@ -234,7 +234,7 @@ resource 'Learning Objects' do
end end
end end
get '/v1/learning_objects/:id/show_submission' do get '/v1/learning_objects/submissions/:id' do
include_context "authenticate_user_curator" include_context "authenticate_user_curator"
let(:id) { @learning_object.id } let(:id) { @learning_object.id }
...@@ -245,7 +245,7 @@ resource 'Learning Objects' do ...@@ -245,7 +245,7 @@ resource 'Learning Objects' do
end end
example 'Show a submission' do example 'Show a submission' do
do_request do_request
expect(status).to eq(200) expect(status).to eq(200)
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment