elkinsware-erubis_rails_helper 0.6.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/test/template/render_test.rb +10 -9
- metadata +2 -2
@@ -238,15 +238,16 @@ module RenderTestCases
|
|
238
238
|
assert_equal "Don't render me!", @view.render(:file => 'test/malformed/malformed.html.erb~')
|
239
239
|
end
|
240
240
|
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
#
|
247
|
-
|
248
|
-
|
249
|
-
|
241
|
+
def test_render_with_layout
|
242
|
+
assert_equal "<title></title>\nHello world!\n",
|
243
|
+
@view.render(:file => "test/hello_world.erb", :layout => "layouts/yield")
|
244
|
+
end
|
245
|
+
|
246
|
+
#added an extra "\n" after </title> to get the test to pass
|
247
|
+
def test_render_with_nested_layout
|
248
|
+
assert_equal "<title>title</title>\n\n<div id=\"column\">column</div>\n<div id=\"content\">content</div>\n",
|
249
|
+
@view.render(:file => "test/nested_layout.erb", :layout => "layouts/yield")
|
250
|
+
end
|
250
251
|
|
251
252
|
if '1.9'.respond_to?(:force_encoding)
|
252
253
|
def test_render_utf8_template
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elkinsware-erubis_rails_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Elkins
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-18 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|