Skip to content

Commit

Permalink
fix codes_controller spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviaBth committed Apr 22, 2024
1 parent c1dbcb0 commit 1218707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controller/admin/codes_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1218707

Please sign in to comment.