gara 0.1.6 → 0.1.7
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.
- checksums.yaml +4 -4
- data/README.md +21 -6
- data/lib/gara/html5_emitter.rb +53 -35
- data/lib/gara/version.rb +1 -1
- data/test/dummy/app/views/hello/show.html.gara +3 -0
- data/test/dummy/app/views/layouts/application.html.gara +4 -3
- data/test/dummy/log/development.log +290 -0
- data/test/dummy/log/test.log +963 -0
- data/test/dummy/test/controllers/hello_controller_test.rb +1 -0
- data/test/handler_test.rb +1 -2
- metadata +1 -1
@@ -5,6 +5,7 @@ class HelloControllerTest < ActionController::TestCase
|
|
5
5
|
get :show
|
6
6
|
assert_response :success
|
7
7
|
assert_match /Hi there/, @response.body
|
8
|
+
assert_match %Q(<link data-turbolinks-track="true" href="/assets/application.css" media="all" rel="stylesheet" />), @response.body
|
8
9
|
end
|
9
10
|
|
10
11
|
end
|
data/test/handler_test.rb
CHANGED
@@ -78,7 +78,7 @@ class HandlerTest < ActiveSupport::TestCase
|
|
78
78
|
|
79
79
|
test "real document has doctype and newline" do
|
80
80
|
@template = new_template("html { body { h1 \"hello\" } }")
|
81
|
-
assert_equal with_doctype("<html
|
81
|
+
assert_equal with_doctype("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n <body>\n <h1>hello</h1>\n </body>\n</html>\n"), render
|
82
82
|
end
|
83
83
|
|
84
84
|
test "locals work" do
|
@@ -99,7 +99,6 @@ class HandlerTest < ActiveSupport::TestCase
|
|
99
99
|
|
100
100
|
test "helpers returning html work in sequence within a block" do
|
101
101
|
@template = new_template("li { link_helper ; link_helper } ")
|
102
|
-
without_self = render
|
103
102
|
assert_equal "<li>\n#{A_LINK}#{A_LINK}\n</li>", render
|
104
103
|
end
|
105
104
|
|