Use remote translations objects instead of hashes

This way we can simplify the code dealing with the translatable
association.
This commit is contained in:
Javi Martín
2023-01-29 16:30:48 +01:00
parent 26cc75a891
commit 2f0327acf8
4 changed files with 14 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
require "rails_helper"
describe Layout::RemoteTranslationsButtonComponent do
let(:translations) { [{}] }
let(:translations) { [RemoteTranslation.new] }
let(:component) { Layout::RemoteTranslationsButtonComponent.new(translations) }
before do