Use "match_array" only for order independent assertions (#3626)

This commit is contained in:
unarist 2017-06-08 01:59:28 +09:00 committed by Matt Jankowski
parent d3bbef27e7
commit 0f1b1d78b1
4 changed files with 7 additions and 7 deletions

View file

@ -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