summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-05-12 12:04:45 -0600
committermo khan <mo.khan@gmail.com>2020-05-12 12:04:45 -0600
commitb55cb6e477eb098a3289e3eb767e59bd1c8d8e1e (patch)
tree2ab83a2875d3cf7528142862d7d52a7dbca58bb0 /spec
parentb0ccf1bda6e192051ad498451e20531aa5a29367 (diff)
Isolate access to index entry cache
Diffstat (limited to 'spec')
-rw-r--r--spec/integration/core/cache_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/integration/core/cache_spec.rb b/spec/integration/core/cache_spec.rb
index f57c766..6161c6c 100644
--- a/spec/integration/core/cache_spec.rb
+++ b/spec/integration/core/cache_spec.rb
@@ -111,7 +111,7 @@ RSpec.describe Spandx::Core::Cache do
it 'builds an index that contains the seek position for the start of each line' do
data_file = subject.datafile_for('spandx')
data_file.open_file do |io|
- data_file.index.data.each do |position|
+ data_file.index.each do |position|
unless position.zero?
io.seek(position - 1)
expect(io.readchar).to eql("\n")