From ab211bf592f52fbde7853961030046ea1d387851 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Thu, 4 Dec 2008 16:35:13 -0600 Subject: Fix rendering html partials from an rjs template Signed-off-by: Joshua Peek --- actionpack/test/fixtures/test/_one.html.erb | 1 + actionpack/test/fixtures/test/_two.html.erb | 1 + actionpack/test/fixtures/test/render_explicit_html_template.js.rjs | 1 + actionpack/test/fixtures/test/render_implicit_html_template.js.rjs | 1 + 4 files changed, 4 insertions(+) create mode 100644 actionpack/test/fixtures/test/_one.html.erb create mode 100644 actionpack/test/fixtures/test/_two.html.erb create mode 100644 actionpack/test/fixtures/test/render_explicit_html_template.js.rjs create mode 100644 actionpack/test/fixtures/test/render_implicit_html_template.js.rjs (limited to 'actionpack/test/fixtures') diff --git a/actionpack/test/fixtures/test/_one.html.erb b/actionpack/test/fixtures/test/_one.html.erb new file mode 100644 index 0000000000..f796291cb4 --- /dev/null +++ b/actionpack/test/fixtures/test/_one.html.erb @@ -0,0 +1 @@ +<%= render :partial => "two" %> world diff --git a/actionpack/test/fixtures/test/_two.html.erb b/actionpack/test/fixtures/test/_two.html.erb new file mode 100644 index 0000000000..5ab2f8a432 --- /dev/null +++ b/actionpack/test/fixtures/test/_two.html.erb @@ -0,0 +1 @@ +Hello \ No newline at end of file diff --git a/actionpack/test/fixtures/test/render_explicit_html_template.js.rjs b/actionpack/test/fixtures/test/render_explicit_html_template.js.rjs new file mode 100644 index 0000000000..4eb12fd6af --- /dev/null +++ b/actionpack/test/fixtures/test/render_explicit_html_template.js.rjs @@ -0,0 +1 @@ +page.call "document.write", render(:partial => "one.html.erb") diff --git a/actionpack/test/fixtures/test/render_implicit_html_template.js.rjs b/actionpack/test/fixtures/test/render_implicit_html_template.js.rjs new file mode 100644 index 0000000000..3d68041756 --- /dev/null +++ b/actionpack/test/fixtures/test/render_implicit_html_template.js.rjs @@ -0,0 +1 @@ +page.call "document.write", render(:partial => "one") -- cgit v1.2.3