ruby-changes:51094
From: usa <ko1@a...>
Date: Sun, 29 Apr 2018 22:45:17 +0900 (JST)
Subject: [ruby-changes:51094] usa:r63301 (trunk): * spec/ruby/command_line/dash_upper_i_spec.rb: skip symlink on Windows like
usa 2018-04-29 22:45:11 +0900 (Sun, 29 Apr 2018) New Revision: 63301 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63301 Log: * spec/ruby/command_line/dash_upper_i_spec.rb: skip symlink on Windows like other specs. Modified files: trunk/spec/ruby/command_line/dash_upper_i_spec.rb Index: spec/ruby/command_line/dash_upper_i_spec.rb =================================================================== --- spec/ruby/command_line/dash_upper_i_spec.rb (revision 63300) +++ spec/ruby/command_line/dash_upper_i_spec.rb (revision 63301) @@ -31,19 +31,21 @@ describe "The -I command line option" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/command_line/dash_upper_i_spec.rb#L31 end end -describe "The -I command line option" do - before :each do - @script = fixture __FILE__, "loadpath.rb" - @fixtures = File.dirname(@script) - @symlink = tmp("loadpath_symlink") - File.symlink(@fixtures, @symlink) - end +platform_is_not :windows do + describe "The -I command line option" do + before :each do + @script = fixture __FILE__, "loadpath.rb" + @fixtures = File.dirname(@script) + @symlink = tmp("loadpath_symlink") + File.symlink(@fixtures, @symlink) + end - after :each do - rm_r @symlink - end + after :each do + rm_r @symlink + end - it "does not expand symlinks" do - ruby_exe(@script, options: "-I #{@symlink}").lines.should include "#{@symlink}\n" + it "does not expand symlinks" do + ruby_exe(@script, options: "-I #{@symlink}").lines.should include "#{@symlink}\n" + end end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/