Fixing tests

This commit is contained in:
2023-03-06 21:44:10 +11:00
parent fd3cf2dba1
commit 1ea4224fb5
4 changed files with 34 additions and 19 deletions

View File

@@ -23,11 +23,11 @@ module Adamantium
end
expose :latest_status do
Decorators::Posts::Decorator.new(post_repo.latest_status)
post_repo.latest_status ? Decorators::Posts::Decorator.new(post_repo.latest_status) : nil
end
expose :last_location do
Decorators::Posts::Decorator.new(post_repo.last_location)
post_repo.last_location ? Decorators::Posts::Decorator.new(post_repo.last_location) : nil
end
end
end