diff options
Diffstat (limited to 'spec/views/status_messages/_status_message.mobile.haml_spec.rb')
-rw-r--r-- | spec/views/status_messages/_status_message.mobile.haml_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/views/status_messages/_status_message.mobile.haml_spec.rb b/spec/views/status_messages/_status_message.mobile.haml_spec.rb index 5487d6a55..d3bbe06b6 100644 --- a/spec/views/status_messages/_status_message.mobile.haml_spec.rb +++ b/spec/views/status_messages/_status_message.mobile.haml_spec.rb @@ -10,8 +10,9 @@ describe "status_messages/_status_message.mobile.haml" do ) 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} + render template: "status_messages/_status_message", locals: {post: post, photos: post.photos} expect(rendered).to_not include("<script>") + expect(rendered).to include("<script>alert(0);</script>") end end |