From da7f24c23827d9d4e8808367735f9ea6b050e6d8 Mon Sep 17 00:00:00 2001 From: Evan Minto Date: Mon, 6 Feb 2017 12:14:02 -0800 Subject: [PATCH] Add test --- spec/controllers/accounts_controller_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/controllers/accounts_controller_spec.rb b/spec/controllers/accounts_controller_spec.rb index 34f17a9433..d2c93c7079 100644 --- a/spec/controllers/accounts_controller_spec.rb +++ b/spec/controllers/accounts_controller_spec.rb @@ -24,6 +24,16 @@ RSpec.describe AccountsController, type: :controller do end end + context 'activitystreams2' do + before do + get :show, params: { username: alice.username }, format: 'activitystreams2' + end + + it 'returns http success with Activity Streams 2.0' do + expect(response).to have_http_status(:success) + end + end + context 'html' do before do get :show, params: { username: alice.username }