Merge pull request #3769 from kennyj/fix_index_html

avoid url started with "/" for the rails.png in public/index.html
This commit is contained in:
José Valim
2011-11-27 07:12:15 -08:00
2 changed files with 2 additions and 1 deletions

View File

@@ -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;

View File

@@ -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