diff --git a/spec/acceptance/suggestions_spec.rb b/spec/acceptance/suggestions_spec.rb index 7491fdf0dcdbd548a5a3a836c783e4cceb0bbafa..0819a639373421698fac15d7761e249bfd865639 100644 --- a/spec/acceptance/suggestions_spec.rb +++ b/spec/acceptance/suggestions_spec.rb @@ -23,4 +23,21 @@ resource 'Suggestions' do end end + + put '/v1/suggestions/:id' do + + parameter :name, 'The suggestion', scope: :suggestion + parameter :link, 'The link to site with the suggested contents', scope: :suggestion + parameter :description, 'The description of the suggested contents', scope: :suggestion + + + let(:id) { suggestions.first.id } + let(:name) { Faker::Lorem.word } + let(:raw_post) { params.to_json } + + example_request 'Updating suggestions' do + expect(status).to eq(200) + end + end + end