spec/lib/onebox/engine/image_onebox_spec.rb in onebox-1.6.5 vs spec/lib/onebox/engine/image_onebox_spec.rb in onebox-1.6.6
- old
+ new
@@ -36,8 +36,8 @@
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/)
+ expect(Onebox.preview("http://host/path/to/Image'withquote.png").to_s).to match(/Image"withquote/)
end
end