Use "match_array" only for order independent assertions (#3626)
This commit is contained in:
parent
d3bbef27e7
commit
0f1b1d78b1
4 changed files with 7 additions and 7 deletions
|
@ -61,7 +61,7 @@ describe StatusesController do
|
|||
|
||||
get :show, params: { account_username: status.account.username, id: status.id }
|
||||
|
||||
expect(assigns(:ancestors)).to match_array([ancestor])
|
||||
expect(assigns(:ancestors)).to eq [ancestor]
|
||||
end
|
||||
|
||||
it 'assigns @ancestors for [] if it is not a reply' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue