about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-02-07 02:08:40 +0100
committerGitHub <noreply@github.com>2017-02-07 02:08:40 +0100
commit9d5fb49cd80ee31f83bf5364338bd829e3eae1d6 (patch)
treebb49d530bdb47d3576987d48a69698779b6504da /spec
parent8a081ce588594154f93702ac2983cb7c0fca015a (diff)
parent28cbb6dc2176cb9ba57841c6dc52b9dbfaf074c8 (diff)
Merge pull request #603 from evanminto/activitypub-account
Expose ActivityStreams 2.0 representation of accounts
Diffstat (limited to 'spec')
-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 }