express_templates 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/express_templates/markup/html_tag.rb +41 -31
- data/lib/express_templates/markup/tag.rb +8 -2
- data/lib/express_templates/version.rb +1 -1
- data/test/dummy/log/test.log +25422 -0
- data/test/markup/tag_test.rb +9 -2
- metadata +2 -2
data/test/markup/tag_test.rb
CHANGED
@@ -121,7 +121,14 @@ class TagTest < ActiveSupport::TestCase
|
|
121
121
|
assert_equal '"<bare id=\"foo\" />"', bare_tag(:foo).compile
|
122
122
|
end
|
123
123
|
|
124
|
-
|
124
|
+
test "print doctype for HTML5 document version" do
|
125
|
+
assert_equal '"<!DOCTYPE html>"', ExpressTemplates::Markup::Doctype.new.compile
|
126
|
+
end
|
125
127
|
|
128
|
+
test "void tags do not have trailing slash" do
|
129
|
+
assert_equal '"<img>"', ExpressTemplates::Markup::Img.new.compile
|
130
|
+
end
|
131
|
+
|
132
|
+
# test "proc option values are evaluated in context"
|
126
133
|
|
127
|
-
end
|
134
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: express_templates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Talcott Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|