diff --git a/spec/acceptance/institutions_spec.rb b/spec/acceptance/institutions_spec.rb index 5d897c1493d683cd7b22e67a708e978f0076d777..72fd9c2f977f0a14dd318e98e3b7b1c89d15b265 100644 --- a/spec/acceptance/institutions_spec.rb +++ b/spec/acceptance/institutions_spec.rb @@ -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