Skip to content
Snippets Groups Projects
Commit b6f794b1 authored by Andrew Cimino's avatar Andrew Cimino
Browse files

Improve method name for clarity and consistency

parent d5a3391d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -673,7 +673,7 @@ def has_trace?
end
 
def has_live_trace?
trace.live_trace_exist?
trace.live?
end
 
def has_archived_trace?
Loading
Loading
Loading
Loading
@@ -74,14 +74,14 @@ def append(data, offset)
end
 
def exist?
archived? || live_trace_exist?
archived? || live?
end
 
def archived?
trace_artifact&.stored?
end
 
def live_trace_exist?
def live?
job.trace_chunks.any? || current_path.present? || old_trace.present?
end
 
Loading
Loading
Loading
Loading
@@ -834,8 +834,8 @@
end
end
 
describe '#live_trace_exist?' do
subject { trace.live_trace_exist? }
describe '#live?' do
subject { trace.live? }
 
context 'when trace does not exist' do
it { is_expected.to be_falsy }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment