* spec/ruby/command_line/dash_upper_i_spec.rb: skip symlink on Windows like

other specs.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2018-04-29 13:45:11 +00:00
parent de2bfd3d9c
commit 6199c9acff

View File

@ -31,19 +31,21 @@ describe "The -I command line option" do
end end
end end
describe "The -I command line option" do platform_is_not :windows do
before :each do describe "The -I command line option" do
@script = fixture __FILE__, "loadpath.rb" before :each do
@fixtures = File.dirname(@script) @script = fixture __FILE__, "loadpath.rb"
@symlink = tmp("loadpath_symlink") @fixtures = File.dirname(@script)
File.symlink(@fixtures, @symlink) @symlink = tmp("loadpath_symlink")
end File.symlink(@fixtures, @symlink)
end
after :each do after :each do
rm_r @symlink rm_r @symlink
end end
it "does not expand symlinks" do it "does not expand symlinks" do
ruby_exe(@script, options: "-I #{@symlink}").lines.should include "#{@symlink}\n" ruby_exe(@script, options: "-I #{@symlink}").lines.should include "#{@symlink}\n"
end
end end
end end