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

create new institution acceptance test

parent b886ae41
No related branches found
No related tags found
No related merge requests found
......@@ -33,4 +33,26 @@ resource 'Institutions' do
end
end
post '/v1/institutions' 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(:raw_post) { params.to_json }
example 'Creating an institution' do
do_request
expect(status).to eq(201)
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