From af3a0da63aeae2e986be114469e1a9e69ab3b346 Mon Sep 17 00:00:00 2001 From: Michael Klimenko Date: Fri, 23 Mar 2018 18:24:22 +0500 Subject: [PATCH] Roles order fixed in test is not essential --- spec/controllers/admin/conferences_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/admin/conferences_controller_spec.rb b/spec/controllers/admin/conferences_controller_spec.rb index 97c76a29..23e6afd2 100644 --- a/spec/controllers/admin/conferences_controller_spec.rb +++ b/spec/controllers/admin/conferences_controller_spec.rb @@ -235,7 +235,7 @@ describe Admin::ConferencesController do expect(conference.roles.count).to eq 4 - expect(conference.roles).to eq [organizer_role, cfp_role, info_desk_role, volunteers_coordinator_role] + expect(conference.roles).to match_array [organizer_role, cfp_role, info_desk_role, volunteers_coordinator_role] end end