diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-11-30 10:18:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-30 10:18:48 -0500 |
commit | dc844844f5a2aafc8489da5b567475da3af3e78d (patch) | |
tree | 51d0a1fafa521c10c835b6a4bd9dc68d4a065237 /actionpack/test/dispatch/static_test.rb | |
parent | 162e889f16ceb47978fe9bc81ac0b46672f05ff0 (diff) | |
parent | 75607a67b4f5e3fb5acf9c49353f102a4ecd9319 (diff) | |
download | rails-dc844844f5a2aafc8489da5b567475da3af3e78d.tar.gz rails-dc844844f5a2aafc8489da5b567475da3af3e78d.tar.bz2 rails-dc844844f5a2aafc8489da5b567475da3af3e78d.zip |
Merge pull request #27225 from y-yagi/make_windows_check_more_accurate
use `Gem.win_platform?` to check windows Ruby platforms
Diffstat (limited to 'actionpack/test/dispatch/static_test.rb')
-rw-r--r-- | actionpack/test/dispatch/static_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/static_test.rb b/actionpack/test/dispatch/static_test.rb index cdb905f298..3facbf59c2 100644 --- a/actionpack/test/dispatch/static_test.rb +++ b/actionpack/test/dispatch/static_test.rb @@ -204,7 +204,7 @@ module StaticTests end # Windows doesn't allow \ / : * ? " < > | in filenames - unless RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ + unless Gem.win_platform? def test_serves_static_file_with_colon with_static_file "/foo/foo:bar.html" do |file| assert_html file, get("/foo/foo%3Abar.html") |