Sha256: b2f512722a9e202f85146f79f25a597e3d82d6b9d44c7c33c896005e2ee28ccd
Contents?: true
Size: 822 Bytes
Versions: 12
Compression:
Stored size: 822 Bytes
Contents
# frozen_string_literal: true require "spec_helper" shared_examples_for "a translated comment event" do describe "translated notifications" do let(:en_body) { "This is Sparta!" } let(:body) { { "en": en_body, "machine_translations": { "ca": "C'est Sparta!" } } } let(:participatory_process) { create :participatory_process, organization: organization } let(:component) { create(:component, participatory_space: participatory_process) } let(:commentable) { create(:dummy_resource, component: component) } let(:comment) { create :comment, body: body, commentable: commentable } let(:en_version) { "<div><p>#{comment.body["en"]}</p></div>" } let(:machine_translated) { "<div><p>#{comment.body["machine_translations"]["ca"]}</p></div>" } it_behaves_like "a translated event" end end
Version data entries
12 entries across 12 versions & 1 rubygems