diff --git a/spec/controllers/api/v1/project_preferences_controller_spec.rb b/spec/controllers/api/v1/project_preferences_controller_spec.rb index 548817d83..0c3f35973 100644 --- a/spec/controllers/api/v1/project_preferences_controller_spec.rb +++ b/spec/controllers/api/v1/project_preferences_controller_spec.rb @@ -222,19 +222,13 @@ expect(json_response['project_preferences'].count).to eq(2) end - it 'returns the correct serialized data' do + it 'returns the correct serialized attributes' do json_response = JSON.parse(response.body) first_response = json_response['project_preferences'].first - expect(first_response).to have_key "settings" - end - - it 'does not return irrelivant data' do - json_response = JSON.parse(response.body) - first_response = json_response['project_preferences'].first - - expect(first_response).to_not have_key "activity_count_by_workflow" - expect(first_response).to_not have_key "email_communication" + expect(first_response).to have_key 'settings' + expect(first_response).to_not have_key 'activity_count_by_workflow' + expect(first_response).to_not have_key 'email_communication' end end