mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
avoid absolute path for the rails.png in index.html
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
|
||||
|
||||
#header {
|
||||
background-image: url("/assets/rails.png");
|
||||
background-image: url("assets/rails.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: top left;
|
||||
height: 64px;
|
||||
|
||||
@@ -55,6 +55,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
|
||||
assert_file "app/views/layouts/application.html.erb", /javascript_include_tag\s+"application"/
|
||||
assert_file "app/assets/stylesheets/application.css"
|
||||
assert_file "config/application.rb", /config\.assets\.enabled = true/
|
||||
assert_file "public/index.html", /url\("assets\/rails.png"\);/
|
||||
end
|
||||
|
||||
def test_invalid_application_name_raises_an_error
|
||||
|
||||
Reference in New Issue
Block a user