Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 33d3a029fc
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (15 sloc) 0.581 kB
require 'test_helper'
class HomeControllerTest < ActionController::TestCase
test "page header should include link to asset" do
get :index
assert_response :success
assert_select 'head script[type="text/javascript"][src="/assets/templates/test.js"]', true
end
end
class HjsTemplateTest < ActionController::IntegrationTest
test "asset pipeline should serve template" do
get "/assets/templates/test.js"
assert_response :success
assert @response.body == "SC.TEMPLATES[\"templates_test\"] = SC.Handlebars.compile(\"{{test}}\\n\");\n"
end
end
Jump to Line
Something went wrong with that request. Please try again.