about summary refs log tree commit diff
path: root/spec/controllers/stream_entries_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/stream_entries_controller_spec.rb
parentd3bbef27e7f15d1322e26ab181a18b2520f9dff6 (diff)
Use "match_array" only for order independent assertions (#3626)
Diffstat (limited to 'spec/controllers/stream_entries_controller_spec.rb')
-rw-r--r--spec/controllers/stream_entries_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/stream_entries_controller_spec.rb b/spec/controllers/stream_entries_controller_spec.rb
index db7c52037..2cc428e0c 100644
--- a/spec/controllers/stream_entries_controller_spec.rb
+++ b/spec/controllers/stream_entries_controller_spec.rb
@@ -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