summaryrefslogtreecommitdiff
path: root/spec/ruby/command_line
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-29 13:45:11 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-29 13:45:11 +0000
commit6199c9acff83eb899a2663750aa85bbf0ab53b83 (patch)
treeb648964959850fc2b5d0a137a4863a9e148554b1 /spec/ruby/command_line
parentde2bfd3d9ca18a97b2d48462ac84c28f70bc3bac (diff)
* 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
Diffstat (limited to 'spec/ruby/command_line')
-rw-r--r--spec/ruby/command_line/dash_upper_i_spec.rb26
1 files changed, 14 insertions, 12 deletions
diff --git a/spec/ruby/command_line/dash_upper_i_spec.rb b/spec/ruby/command_line/dash_upper_i_spec.rb
index b19f2176880..4cafb724e30 100644
--- a/spec/ruby/command_line/dash_upper_i_spec.rb
+++ b/spec/ruby/command_line/dash_upper_i_spec.rb
@@ -31,19 +31,21 @@ describe "The -I command line option" do
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