Skip to content
Snippets Groups Projects
Commit ac79ea8f authored by Giovanne Marcelo's avatar Giovanne Marcelo
Browse files

add publish learning object test

parent 97113411
No related branches found
No related tags found
No related merge requests found
......@@ -152,4 +152,21 @@ resource 'Learning Objects' do
end
end
post '/v1/learning_objects/:id/publish' do
include_context "authenticate_user"
let(:id) { @learning_object.id }
before do
@learning_object = create(:learning_object, publisher: @user, state: LearningObject.states[:draft])
end
example 'Publishing a learning object' do
do_request
expect(status).to eq(200)
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