about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2017-05-23 20:12:45 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-23 13:12:45 +0200
commit1d3e0a50605d0f7eab93ec40c4b4b3de4654b4c5 (patch)
tree52f0e691f1388d8f4a9401a3786935d4f6eee0e1 /spec
parentbf575a1f5e45515733c8c518182bbb0a3c439920 (diff)
Spec AuthorizeFollowsController assigns @account (#3246)
@account is used by the view.
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/authorize_follows_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/authorize_follows_controller_spec.rb b/spec/controllers/authorize_follows_controller_spec.rb
index 87a46cf8e..1bc4eb6b7 100644
--- a/spec/controllers/authorize_follows_controller_spec.rb
+++ b/spec/controllers/authorize_follows_controller_spec.rb
@@ -48,7 +48,7 @@ describe AuthorizeFollowsController do
         get :show, params: { acct: 'http://example.com' }
 
         expect(response).to have_http_status(:success)
-        expect(service).to have_received(:call).with('http://example.com')
+        expect(assigns(:account)).to eq account
       end
 
       it 'sets account from acct uri' do
@@ -60,7 +60,7 @@ describe AuthorizeFollowsController do
         get :show, params: { acct: 'acct:found@hostname' }
 
         expect(response).to have_http_status(:success)
-        expect(service).to have_received(:call).with('found@hostname')
+        expect(assigns(:account)).to eq account
       end
     end
   end