From 1218707f2501a785cb86cf628b61eba870807e64 Mon Sep 17 00:00:00 2001 From: elviabth Date: Mon, 22 Apr 2024 15:19:33 +0200 Subject: [PATCH] fix codes_controller spec --- spec/controller/admin/codes_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controller/admin/codes_controller_spec.rb b/spec/controller/admin/codes_controller_spec.rb index 16bee68..7605dd2 100644 --- a/spec/controller/admin/codes_controller_spec.rb +++ b/spec/controller/admin/codes_controller_spec.rb @@ -30,7 +30,7 @@ module Admin it "assigns @tokens with paginated tokens ordered by creation date" do get :index, params: { code_group_id: code_group.id } - expect(assigns(:tokens)).to eq([token2, token1]) + expect(assigns(:tokens)).to contain_exactly(token2, token1) end it "renders the index template" do