about summary refs log tree commit diff
path: root/spec/controllers/statuses_controller_spec.rb
diff options
context:
space:
mode:
authorunarist <m.unarist@gmail.com>2017-06-08 01:59:28 +0900
committerMatt Jankowski <mjankowski@thoughtbot.com>2017-06-07 12:59:28 -0400
commit0f1b1d78b15bd779c3427d4275d45d3e34e0b2ef (patch)
tree46023cf3e052fb90cde91cf34465ed76c90d7195 /spec/controllers/statuses_controller_spec.rb
parentd3bbef27e7f15d1322e26ab181a18b2520f9dff6 (diff)
Use "match_array" only for order independent assertions (#3626)
Diffstat (limited to 'spec/controllers/statuses_controller_spec.rb')
-rw-r--r--spec/controllers/statuses_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/statuses_controller_spec.rb b/spec/controllers/statuses_controller_spec.rb
index c329996c8..88d365624 100644
--- a/spec/controllers/statuses_controller_spec.rb
+++ b/spec/controllers/statuses_controller_spec.rb
@@ -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