mod/standard/spec/set/all/path_spec.rb in card-1.97.0.1 vs mod/standard/spec/set/all/path_spec.rb in card-1.98.0

- old
+ new

@@ -57,9 +57,14 @@ it "renders as absolute url" do with_complex_env do expect(path).to eq("http://mydomain.com/root/A") end end + + it "casts slot[hide] as array" do + slot_hide = CGI.escape "slot[hide][]" + expect(path(slot: { hide: "myview" })).to eq("/A?#{slot_hide}=myview") + end end context "when in html format" do let :format do Card["A"].format(:html)