Skip to content

Commit 422bac0

Browse files
committed
#542 close the fake spec_helper.rb so the directory can be removed with the after(:each)
1 parent 6dc41c5 commit 422bac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/actions/directory_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def exists_and_identical?(source_path, destination_path)
154154
before(:each) do
155155
@temp_dir = Dir.mktmpdir("thor")
156156
Dir.mkdir(spec_dir)
157-
File.new(File.join(spec_dir, "spec_helper.rb"), "w")
157+
File.new(File.join(spec_dir, "spec_helper.rb"), "w").close
158158
end
159159

160160
after(:each) { FileUtils.rm_rf(@temp_dir) }

0 commit comments

Comments
 (0)