File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2
2
require "thor/actions"
3
3
require "tempfile"
4
4
5
- describe Thor ::Actions ::CreateLink do
5
+ describe Thor ::Actions ::CreateLink , :unless => windows? do
6
6
before do
7
7
@silence = false
8
8
@hardlink_to = File . join ( Dir . tmpdir , "linkdest.rb" )
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def file
96
96
end
97
97
end
98
98
99
- describe "#link_file" do
99
+ describe "#link_file" , :unless => windows? do
100
100
it "links file from source to default destination" do
101
101
action :link_file , "command.thor"
102
102
exists_and_identical? ( "command.thor" , "command.thor" )
Original file line number Diff line number Diff line change @@ -79,5 +79,12 @@ def silence_warnings
79
79
$VERBOSE = old_verbose
80
80
end
81
81
82
+ # true if running on windows, used for conditional spec skips
83
+ #
84
+ # @return [TrueClass/FalseClass]
85
+ def windows?
86
+ Gem . win_platform?
87
+ end
88
+
82
89
alias silence capture
83
90
end
You can’t perform that action at this time.
0 commit comments