diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-02-11 21:53:20 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-02-11 21:53:20 +0100 |
commit | 51cad4f7fba199cdcda3ba18b68a25312e21c256 (patch) | |
tree | 15e40a919e3c7984db95e2be5a21098b0a086886 /spec/controllers/api/v1/accounts | |
parent | 776e337b8d2aa66440bc4565617b5440ca781e1a (diff) | |
parent | d0fcf07436d158bcac2617d076a83d0aa49c39e6 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'spec/controllers/api/v1/accounts')
-rw-r--r-- | spec/controllers/api/v1/accounts/statuses_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/api/v1/accounts/statuses_controller_spec.rb b/spec/controllers/api/v1/accounts/statuses_controller_spec.rb index 348de08c2..b962b3398 100644 --- a/spec/controllers/api/v1/accounts/statuses_controller_spec.rb +++ b/spec/controllers/api/v1/accounts/statuses_controller_spec.rb @@ -79,7 +79,7 @@ describe Api::V1::Accounts::StatusesController do it 'lists both the public and the private statuses' do get :index, params: { account_id: account.id, pinned: true } json = body_as_json - expect(json.map { |item| item[:id].to_i }.sort).to eq [status.id, private_status.id].sort + expect(json.map { |item| item[:id].to_i }).to match_array([status.id, private_status.id]) end end end |