about summary refs log tree commit diff
path: root/spec/controllers
diff options
context:
space:
mode:
authorEvan Minto <evan.minto@gmail.com>2017-02-06 12:14:02 -0800
committerEvan Minto <evan.minto@gmail.com>2017-02-06 12:14:02 -0800
commitda7f24c23827d9d4e8808367735f9ea6b050e6d8 (patch)
treea2ec27b0c3669aca59eae36634ee92a5ad5c19e7 /spec/controllers
parent3fa5d059977388066d71e475e484728f6019d04e (diff)
Add test
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/accounts_controller_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/controllers/accounts_controller_spec.rb b/spec/controllers/accounts_controller_spec.rb
index 34f17a943..d2c93c707 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 }