aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorYuki Nishijima <mail@yukinishijima.net>2015-06-11 04:34:11 -0700
committerYuki Nishijima <mail@yukinishijima.net>2015-06-11 04:34:11 -0700
commita888c3cdc9b0280783861b4687409db619669ab2 (patch)
treee4d7b490293a4924c74ce6a8843782f1ab53c16a /actionpack/test
parent96bb004fc6e67cdf1b873f11ad5f8efd06949797 (diff)
downloadrails-a888c3cdc9b0280783861b4687409db619669ab2.tar.gz
rails-a888c3cdc9b0280783861b4687409db619669ab2.tar.bz2
rails-a888c3cdc9b0280783861b4687409db619669ab2.zip
Change the `index` arg of `ActionDispatch::Static#new` to a kwarg
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/static_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/static_test.rb b/actionpack/test/dispatch/static_test.rb
index e729cc44f9..95971b3a0e 100644
--- a/actionpack/test/dispatch/static_test.rb
+++ b/actionpack/test/dispatch/static_test.rb
@@ -263,7 +263,7 @@ class StaticTest < ActiveSupport::TestCase
end
def test_non_default_static_index
- @app = ActionDispatch::Static.new(DummyApp, @root, "public, max-age=60", "other-index")
+ @app = ActionDispatch::Static.new(DummyApp, @root, "public, max-age=60", index: "other-index")
assert_html "/other-index.html", get("/other-index.html")
assert_html "/other-index.html", get("/other-index")
assert_html "/other-index.html", get("/")