# frozen_string_literal = true RSpec.describe :safe_join do link :safe_join, from: :ree_text it { expect(safe_join(["

foo

", "

bar

"], sep: "
")).to eq("<p>foo</p><br /><p>bar</p>") expect(safe_join(["a", ["b", "c"]], sep: ":")).to eq("a:b:c") expect(safe_join(['"a"', ["", ""]], sep: "
")).to eq(""a" <br/> <b> <br/> <c>") expect(safe_join(["a", "b"])).to eq("a$b") expect(safe_join(["a", "b"], sep: "|")).to eq("a|b") } end