aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/assets_test.rb
diff options
context:
space:
mode:
authorSharang Dashputre <sharang.d@gmail.com>2019-04-01 17:59:37 +0530
committerSharang Dashputre <sharang.d@gmail.com>2019-04-01 22:56:35 +0530
commit771973c13dd5b68fe96fbe5ea96bd11656437dc1 (patch)
tree0fadf0afda55ed7331080113cfabb6c885f4248e /railties/test/application/assets_test.rb
parente0a9e0259c56700fc83b3e886cdf7c04f6a83495 (diff)
downloadrails-771973c13dd5b68fe96fbe5ea96bd11656437dc1.tar.gz
rails-771973c13dd5b68fe96fbe5ea96bd11656437dc1.tar.bz2
rails-771973c13dd5b68fe96fbe5ea96bd11656437dc1.zip
url -> URL where apt except inside actionpack/
Diffstat (limited to 'railties/test/application/assets_test.rb')
-rw-r--r--railties/test/application/assets_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb
index 46ee0d670e..a80581211b 100644
--- a/railties/test/application/assets_test.rb
+++ b/railties/test/application/assets_test.rb
@@ -450,7 +450,7 @@ module ApplicationTests
assert_equal 0, files.length, "Expected application.js asset to be removed, but still exists"
end
- test "asset urls should use the request's protocol by default" do
+ test "asset URLs should use the request's protocol by default" do
app_with_assets_in_view
add_to_config "config.asset_host = 'example.com'"
add_to_env_config "development", "config.assets.digest = false"
@@ -466,7 +466,7 @@ module ApplicationTests
assert_match('src="https://example.com/assets/application.self.js', last_response.body)
end
- test "asset urls should be protocol-relative if no request is in scope" do
+ test "asset URLs should be protocol-relative if no request is in scope" do
app_file "app/assets/images/rails.png", "notreallyapng"
app_file "app/assets/javascripts/image_loader.js.erb", "var src='<%= image_path('rails.png') %>';"
add_to_config "config.assets.precompile = %w{rails.png image_loader.js}"