diff --git a/spec/helpers/administrate/application_helper_spec.rb b/spec/helpers/administrate/application_helper_spec.rb index f51f760398..c1ebe170e3 100644 --- a/spec/helpers/administrate/application_helper_spec.rb +++ b/spec/helpers/administrate/application_helper_spec.rb @@ -53,4 +53,12 @@ expect(route_key).to eq("customers") end end + + describe "#sort_order" do + it "sanitizes to ascending/descending/none" do + expect(sort_order("asc")).to eq("ascending") + expect(sort_order("desc")).to eq("descending") + expect(sort_order("for anything else")).to eq("none") + end + end end