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

put in institution acceptance test

parent fbcec1d8
No related branches found
No related tags found
No related merge requests found
......@@ -55,4 +55,27 @@ resource 'Institutions' do
end
end
put '/v1/institutions/:id' do
include_context "authenticate_user"
parameter :name, 'The name of the institution'
parameter :description, 'The description of the institution'
parameter :address, 'The address of the institution'
parameter :city, 'The city of the institution'
parameter :country, 'The country of the institution'
let(:name) { Faker::Name.name }
let(:description) { Faker::Lorem.paragraph }
let(:address) { Faker::Address.street_address }
let(:city) { Faker::Address.city }
let(:country) { Faker::Address.country }
let(:id) { institutions.first.id }
let(:raw_post) { params.to_json }
example 'Updating an institution' 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