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

@ -73,8 +73,8 @@ RSpec.describe StreamEntriesController, type: :controller do
get :show, params: { account_username: status.account.username, id: status.stream_entry.id }
expect(assigns(:ancestors)).to match_array([ancestor])
expect(assigns(:descendants)).to match_array([descendant])
expect(assigns(:ancestors)).to eq [ancestor]
expect(assigns(:descendants)).to eq [descendant]
expect(response).to have_http_status(:success)
end