Skip to content

Commit 813827a

Browse files
unakeregon
authored andcommitted
* 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
1 parent fbfdd2b commit 813827a

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

command_line/dash_upper_i_spec.rb

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,21 @@
3131
end
3232
end
3333

34-
describe "The -I command line option" do
35-
before :each do
36-
@script = fixture __FILE__, "loadpath.rb"
37-
@fixtures = File.dirname(@script)
38-
@symlink = tmp("loadpath_symlink")
39-
File.symlink(@fixtures, @symlink)
40-
end
34+
platform_is_not :windows do
35+
describe "The -I command line option" do
36+
before :each do
37+
@script = fixture __FILE__, "loadpath.rb"
38+
@fixtures = File.dirname(@script)
39+
@symlink = tmp("loadpath_symlink")
40+
File.symlink(@fixtures, @symlink)
41+
end
4142

42-
after :each do
43-
rm_r @symlink
44-
end
43+
after :each do
44+
rm_r @symlink
45+
end
4546

46-
it "does not expand symlinks" do
47-
ruby_exe(@script, options: "-I #{@symlink}").lines.should include "#{@symlink}\n"
47+
it "does not expand symlinks" do
48+
ruby_exe(@script, options: "-I #{@symlink}").lines.should include "#{@symlink}\n"
49+
end
4850
end
4951
end

0 commit comments

Comments
 (0)