Use remote translations objects instead of hashes
This way we can simplify the code dealing with the translatable association.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user