spec/lib/onebox/engine_spec.rb in onebox-1.8.30 vs spec/lib/onebox/engine_spec.rb in onebox-1.8.31
- old
+ new
@@ -20,10 +20,10 @@
describe "#link" do
before { allow(Onebox::View).to receive(:template) { %|this should be a template| } }
it "escapes `link`" do
html = OneboxEngineExample.new(%|http://foo.com/'?a=1&b=2|).to_html
- expect(html).not_to match(/&(?!amp;)(?!#39;)/)
+ expect(html).not_to match(/'/)
end
end
describe "#record" do
class OneboxEngineRecord