# frozen_string_literal: true
describe "status_messages/_status_message.mobile.haml" do
it "escapes the OpenGraph metadata" do
open_graph_cache = OpenGraphCache.new(
url: "",
title: "",
image: "https://example.org/\">",
description: ""
)
post = FactoryGirl.create(:status_message, public: true, open_graph_cache: open_graph_cache)
render file: "status_messages/_status_message.mobile.haml", locals: {post: post, photos: post.photos}
expect(rendered).to_not include("