aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-06-11 12:09:32 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-06-11 12:09:32 -0300
commitb560f8774a57e9f0c97cc369ccd7491463f0d663 (patch)
treebaaba4640b5215cf3dca358698638bc2dbd26dbd /actionpack/test
parent75761c17380f9129e08dd04954ae162c5cdcea6e (diff)
parenta888c3cdc9b0280783861b4687409db619669ab2 (diff)
downloadrails-b560f8774a57e9f0c97cc369ccd7491463f0d663.tar.gz
rails-b560f8774a57e9f0c97cc369ccd7491463f0d663.tar.bz2
rails-b560f8774a57e9f0c97cc369ccd7491463f0d663.zip
Merge pull request #20520 from yuki24/use-a-kwarg-for-static-index
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("/")