Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.rb3
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("&lt;script&gt;alert(0);&lt;/script&gt;")
end
end