spec/lib/onebox/engine/image_onebox_spec.rb in onebox-1.6.3 vs spec/lib/onebox/engine/image_onebox_spec.rb in onebox-1.6.4

- old
+ new

@@ -34,6 +34,10 @@ end it "includes a direct link to the image" do expect(Onebox.preview('http://www.discourse.org/images/logo.png').to_s).to match(/<a.*png/) end + + it "doesn't inline single quotes" do + expect(Onebox.preview("http://host/path/to/image'withquote.png").to_s).to match(/image%27withquote/) + end end