From 1bcb1ef85e63478c8b48524c8a761f9819673f50 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Mon, 25 Apr 2016 13:19:57 +0200 Subject: Update specs for creating new note without access --- spec/requests/api/notes_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/requests/api/notes_spec.rb b/spec/requests/api/notes_spec.rb index ed1ed5aeb95..beb29a68692 100644 --- a/spec/requests/api/notes_spec.rb +++ b/spec/requests/api/notes_spec.rb @@ -258,8 +258,8 @@ describe API::API, api: true do body: 'Hi!' end - it 'responds with 500' do - expect(response.status).to eq 500 + it 'responds with resource not found error' do + expect(response.status).to eq 404 end it 'does not create new note' do -- cgit v1.2.1