From 625b8e614f1c2e377b1117733b5aa00a643506ac Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Sat, 23 Aug 2025 21:57:25 +0200 Subject: [PATCH] Fix failing spec --- CHANGELOG.md | 2 +- app/services/photos/thumbnail.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64d88779..abdfeb77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Fixed -- Some types of imports were not being detected correctly and were failing to import. +- Some types of imports were not being detected correctly and were failing to import. #1678 # [0.30.10] - 2025-08-22 diff --git a/app/services/photos/thumbnail.rb b/app/services/photos/thumbnail.rb index ad2da385..c7046a2d 100644 --- a/app/services/photos/thumbnail.rb +++ b/app/services/photos/thumbnail.rb @@ -52,7 +52,7 @@ class Photos::Thumbnail request_headers end - unsupported_source_error unless SUPPORTED_SOURCES.include?(source) + def unsupported_source_error raise ArgumentError, "Unsupported source: #{source}" end end