File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
25
25
26
26
### Fixed
27
27
- Don't define ` ostream& operator<<(nullptr_t) ` if already defined by Apple
28
+ - ` CppLibrary.in_tests_dir? ` no longer produces an error if there is no tests directory
28
29
29
30
### Security
30
31
Original file line number Diff line number Diff line change @@ -122,6 +122,8 @@ def vendor_bundle?(path)
122
122
# @param path [Pathname] The path to check
123
123
# @return [bool]
124
124
def in_tests_dir? ( path )
125
+ return false unless tests_dir . exist?
126
+
125
127
tests_dir_aliases = [ tests_dir , tests_dir . realpath ]
126
128
# we could do this but some rubies don't return an enumerator for ascend
127
129
# path.ascend.any? { |part| tests_dir_aliases.include?(part) }
You can’t perform that action at this time.
0 commit comments