aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorJoost Baaij <joost@spacebabies.nl>2011-04-21 16:32:02 +0200
committerJoost Baaij <joost@spacebabies.nl>2011-04-21 16:32:02 +0200
commit783007a8ad7b4b61a1a671d1737a8a6e0369ceb9 (patch)
treefc620004dd8a403351bb7551c5161a7e76ced1a2 /actionpack/test/template
parent2f0dca5ee081f22d20457150b92225958b6ef363 (diff)
downloadrails-783007a8ad7b4b61a1a671d1737a8a6e0369ceb9.tar.gz
rails-783007a8ad7b4b61a1a671d1737a8a6e0369ceb9.tar.bz2
rails-783007a8ad7b4b61a1a671d1737a8a6e0369ceb9.zip
Replace example hostname with "example.com".
The hostname used in these comments actually exists, which is undesirable. See also RFC 2606.
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/sprockets_helper_test.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/actionpack/test/template/sprockets_helper_test.rb b/actionpack/test/template/sprockets_helper_test.rb
index d8aef34bfb..8d3be09a4f 100644
--- a/actionpack/test/template/sprockets_helper_test.rb
+++ b/actionpack/test/template/sprockets_helper_test.rb
@@ -69,10 +69,10 @@ class SprocketsHelperTest < ActionView::TestCase
assert_equal "/dir/xmlhr.js",
asset_path("/dir/xmlhr", "js")
- assert_equal "http://www.railsapplication.com/js/xmlhr",
- asset_path("http://www.railsapplication.com/js/xmlhr", "js")
- assert_equal "http://www.railsapplication.com/js/xmlhr.js",
- asset_path("http://www.railsapplication.com/js/xmlhr.js", "js")
+ assert_equal "http://www.example.com/js/xmlhr",
+ asset_path("http://www.example.com/js/xmlhr", "js")
+ assert_equal "http://www.example.com/js/xmlhr.js",
+ asset_path("http://www.example.com/js/xmlhr.js", "js")
end
test "javascript include tag" do
@@ -83,8 +83,8 @@ class SprocketsHelperTest < ActionView::TestCase
sprockets_javascript_include_tag("xmlhr")
assert_equal '<script src="/assets/xmlhr-d41d8cd98f00b204e9800998ecf8427e.js" type="text/javascript"></script>',
sprockets_javascript_include_tag("xmlhr.js")
- assert_equal '<script src="http://www.railsapplication.com/xmlhr" type="text/javascript"></script>',
- sprockets_javascript_include_tag("http://www.railsapplication.com/xmlhr")
+ assert_equal '<script src="http://www.example.com/xmlhr" type="text/javascript"></script>',
+ sprockets_javascript_include_tag("http://www.example.com/xmlhr")
end
test "stylesheet path" do
@@ -94,10 +94,10 @@ class SprocketsHelperTest < ActionView::TestCase
assert_equal "/assets/dir/style-d41d8cd98f00b204e9800998ecf8427e.css", asset_path("dir/style.css", "css")
assert_equal "/dir/style.css", asset_path("/dir/style.css", "css")
- assert_equal "http://www.railsapplication.com/css/style",
- asset_path("http://www.railsapplication.com/css/style", "css")
- assert_equal "http://www.railsapplication.com/css/style.css",
- asset_path("http://www.railsapplication.com/css/style.css", "css")
+ assert_equal "http://www.example.com/css/style",
+ asset_path("http://www.example.com/css/style", "css")
+ assert_equal "http://www.example.com/css/style.css",
+ asset_path("http://www.example.com/css/style.css", "css")
end
test "stylesheet link tag" do
@@ -109,8 +109,8 @@ class SprocketsHelperTest < ActionView::TestCase
assert_equal '<link href="/assets/style-d41d8cd98f00b204e9800998ecf8427e.css" media="screen" rel="stylesheet" type="text/css" />',
sprockets_stylesheet_link_tag("style.css")
- assert_equal '<link href="http://www.railsapplication.com/style.css" media="screen" rel="stylesheet" type="text/css" />',
- sprockets_stylesheet_link_tag("http://www.railsapplication.com/style.css")
+ assert_equal '<link href="http://www.example.com/style.css" media="screen" rel="stylesheet" type="text/css" />',
+ sprockets_stylesheet_link_tag("http://www.example.com/style.css")
assert_equal '<link href="/assets/style-d41d8cd98f00b204e9800998ecf8427e.css" media="all" rel="stylesheet" type="text/css" />',
sprockets_stylesheet_link_tag("style", :media => "all")
assert_equal '<link href="/assets/style-d41d8cd98f00b204e9800998ecf8427e.css" media="print" rel="stylesheet" type="text/css" />',