diff options
Diffstat (limited to 'spec/models/pages/lookup_path_spec.rb')
-rw-r--r-- | spec/models/pages/lookup_path_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/pages/lookup_path_spec.rb b/spec/models/pages/lookup_path_spec.rb index 2d7ee8ba3be..6f684eceaec 100644 --- a/spec/models/pages/lookup_path_spec.rb +++ b/spec/models/pages/lookup_path_spec.rb @@ -74,6 +74,12 @@ RSpec.describe Pages::LookupPath do end end + it 'does not recreate source hash' do + expect(deployment.file).to receive(:url_or_file_path).once + + 2.times { lookup_path.source } + end + context 'when deployment is in the local storage' do before do deployment.file.migrate!(::ObjectStorage::Store::LOCAL) |