lib/assert/assert_runner.rb in assert-2.17.0 vs lib/assert/assert_runner.rb in assert-2.18.0
- old
+ new
@@ -1,9 +1,8 @@
require "assert/cli"
module Assert
-
class AssertRunner
USER_SETTINGS_FILE = ".assert/init.rb"
LOCAL_SETTINGS_FILE = ".assert.rb"
attr_reader :config
@@ -115,9 +114,7 @@
seg_pos = full_path.index(segment_regex(segment))
File.join(seg_pos && (seg_pos > 0) ? full_path[0..(seg_pos-1)] : full_path, segment)
end
def segment_regex(seg); /^#{seg}$|^#{seg}\/|\/#{seg}\/|\/#{seg}$/; end
-
end
-
end