File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
require "fileutils"
2
2
3
3
describe Manpages ::Install do
4
+ after do
5
+ FileUtils . rm_r "spec/tmp"
6
+ end
7
+
4
8
it "copies the man pages to a correct directory structure" do
5
9
Manpages ::Install . new (
6
10
Gem ::Specification . new ( name : "manpages_test" ) ,
73
77
"Problems creating symlink spec/tmp/man/man2/example.2\n " \
74
78
"Problems creating symlink spec/tmp/man/man1/extra.1\n "
75
79
) . to_stdout
76
- FileUtils . rm_r "spec/tmp"
77
80
end
78
81
end
Original file line number Diff line number Diff line change 5
5
FileUtils . mkdir_p ( "spec/tmp/man/man1" )
6
6
end
7
7
8
+ after do
9
+ FileUtils . rm_r "spec/tmp"
10
+ end
11
+
8
12
it "Deletes a manpage if the link is to this gem" do
9
13
FileUtils . ln_s ( "spec/data/man/example.1" , "spec/tmp/man/man1/example.1" )
10
14
Manpages ::Uninstall . new (
You can’t perform that action at this time.
0 commit comments