diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-02-11 22:22:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 22:22:25 +0100 |
commit | 59b7ba451b4ded817c98abfa8c88738de0484917 (patch) | |
tree | 86a6af23cb16f45a5bfb660d8edd70ad57d4a30c /spec/controllers/api/v1 | |
parent | 776e337b8d2aa66440bc4565617b5440ca781e1a (diff) | |
parent | a34e4f7e279e14b304ed81f698feb19d18a74d04 (diff) |
Merge pull request #1684 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/controllers/api/v1')
-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 |