diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-08 20:36:01 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-08 20:36:01 +0200 |
commit | 85d89b472dff2c3d06801dbd42f91c325d21a434 (patch) | |
tree | b348297bf48c63f906cdcdbc1ff573203afb560a /spec | |
parent | a4cc966476852542f445793b60c67ad3682976e5 (diff) |
Optimized n+1 queries in accounts Atom and HTML views
Added stack trace for SQL queries in development Removed badly thought out accounts/lookup API
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/api/accounts/lookup_controller_spec.rb | 24 | ||||
-rw-r--r-- | spec/helpers/api/accounts/lookup_helper_spec.rb | 5 |
2 files changed, 0 insertions, 29 deletions
diff --git a/spec/controllers/api/accounts/lookup_controller_spec.rb b/spec/controllers/api/accounts/lookup_controller_spec.rb deleted file mode 100644 index 3f590b82f..000000000 --- a/spec/controllers/api/accounts/lookup_controller_spec.rb +++ /dev/null @@ -1,24 +0,0 @@ -require 'rails_helper' - -RSpec.describe Api::Accounts::LookupController, type: :controller do - render_views - - let(:user) { Fabricate(:user, account: Fabricate(:account, username: 'alice')) } - let(:token) { double acceptable?: true, resource_owner_id: user.id } - - before do - allow(controller).to receive(:doorkeeper_token) { token } - end - - describe 'GET #index' do - before do - Fabricate(:account, username: 'bob') - Fabricate(:account, username: 'mcbeth') - get :index, params: { usernames: 'alice,bob,mcbeth' } - end - - it 'returns http success' do - expect(response).to have_http_status(:success) - end - end -end diff --git a/spec/helpers/api/accounts/lookup_helper_spec.rb b/spec/helpers/api/accounts/lookup_helper_spec.rb deleted file mode 100644 index 8ae1c6f9d..000000000 --- a/spec/helpers/api/accounts/lookup_helper_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'rails_helper' - -RSpec.describe Api::Accounts::LookupHelper, type: :helper do - -end |