diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-11-30 20:57:50 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-11-30 20:57:50 +0900 |
commit | 75607a67b4f5e3fb5acf9c49353f102a4ecd9319 (patch) | |
tree | 4dd142ddbb32b5350914f64c5fbe8b70b76f57cc /actionview/test/actionpack | |
parent | 0e97cd1a0d3e7dbe2b99eb111e005d7c9d7002b7 (diff) | |
download | rails-75607a67b4f5e3fb5acf9c49353f102a4ecd9319.tar.gz rails-75607a67b4f5e3fb5acf9c49353f102a4ecd9319.tar.bz2 rails-75607a67b4f5e3fb5acf9c49353f102a4ecd9319.zip |
use `Gem.win_platform?` to check windows Ruby platforms
`Gem.win_platform?` check if it is Windows more accurately.
Ref: https://github.com/ruby/ruby/blob/ruby_2_2/lib/rubygems.rb#L945..L952
Diffstat (limited to 'actionview/test/actionpack')
-rw-r--r-- | actionview/test/actionpack/controller/layout_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/actionpack/controller/layout_test.rb b/actionview/test/actionpack/controller/layout_test.rb index a342b22161..b79835ff34 100644 --- a/actionview/test/actionpack/controller/layout_test.rb +++ b/actionview/test/actionpack/controller/layout_test.rb @@ -252,7 +252,7 @@ class LayoutStatusIsRenderedTest < ActionController::TestCase end end -unless /mswin|mingw/.match?(RbConfig::CONFIG["host_os"]) +unless Gem.win_platform? class LayoutSymlinkedTest < LayoutTest layout "symlinked/symlinked_layout" end |