From 461fae4f77d1774ffc4c377127da923a1fd9f939 Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Sat, 15 Jan 2022 12:52:19 +0100 Subject: [PATCH] Use contain_exactly() in spec --- spec/invidious/user/imports_spec.cr | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/spec/invidious/user/imports_spec.cr b/spec/invidious/user/imports_spec.cr index a1acc2c0..5a682ec5 100644 --- a/spec/invidious/user/imports_spec.cr +++ b/spec/invidious/user/imports_spec.cr @@ -32,18 +32,20 @@ Spectator.describe "Invidious::User::Imports" do expect(subscriptions).to be_an(Array(String)) expect(subscriptions.size).to eq(13) - expect(subscriptions).to contain("UC0hHW5Y08ggq-9kbrGgWj0A") - expect(subscriptions).to contain("UC0vBXGSyV14uvJ4hECDOl0Q") - expect(subscriptions).to contain("UC1sELGmy5jp5fQUugmuYlXQ") - expect(subscriptions).to contain("UC9kFnwdCRrX7oTjqKd6-tiQ") - expect(subscriptions).to contain("UCBa659QWEk1AI4Tg--mrJ2A") - expect(subscriptions).to contain("UCGu6_XQ64rXPR6nuitMQE_A") - expect(subscriptions).to contain("UCGwu0nbY2wSkW8N-cghnLpA") - expect(subscriptions).to contain("UCQ0OvZ54pCFZwsKxbltg_tg") - expect(subscriptions).to contain("UCRE6itj4Jte4manQEu3Y7OA") - expect(subscriptions).to contain("UCRLc6zsv_d0OEBO8OOkz-DA") - expect(subscriptions).to contain("UCSl5Uxu2LyaoAoMMGp6oTJA") - expect(subscriptions).to contain("UCXuqSBlHAE6Xw-yeJA0Tunw") - expect(subscriptions).to contain("UCZ5XnGb-3t7jCkXdawN2tkA") + expect(subscriptions).to contain_exactly( + "UC0hHW5Y08ggq-9kbrGgWj0A", + "UC0vBXGSyV14uvJ4hECDOl0Q", + "UC1sELGmy5jp5fQUugmuYlXQ", + "UC9kFnwdCRrX7oTjqKd6-tiQ", + "UCBa659QWEk1AI4Tg--mrJ2A", + "UCGu6_XQ64rXPR6nuitMQE_A", + "UCGwu0nbY2wSkW8N-cghnLpA", + "UCQ0OvZ54pCFZwsKxbltg_tg", + "UCRE6itj4Jte4manQEu3Y7OA", + "UCRLc6zsv_d0OEBO8OOkz-DA", + "UCSl5Uxu2LyaoAoMMGp6oTJA", + "UCXuqSBlHAE6Xw-yeJA0Tunw", + "UCZ5XnGb-3t7jCkXdawN2tkA", + ).in_order end end