From 76447684da460623a3f20aedef66e00c57356334 Mon Sep 17 00:00:00 2001 From: Kanezoh Date: Thu, 1 Jul 2021 21:00:26 +0900 Subject: [PATCH] multiple request data test --- spec/form/multi_select_list_spec.cr | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/form/multi_select_list_spec.cr b/spec/form/multi_select_list_spec.cr index d672cd0..c9a8671 100644 --- a/spec/form/multi_select_list_spec.cr +++ b/spec/form/multi_select_list_spec.cr @@ -42,4 +42,9 @@ describe "Form Fields Multiple Select List" do selectbox.select_none selectbox.values.empty?.should eq true end + + it "returns multiple selected values" do + selectbox.select_all + form.request_data.should eq "pets=dog&pets=cat&pets=hamster" + end end