Sha256: f97b616cc83b531f7f1c5c5d80919ee25990b2c690293e2beffe984f78fc3cbd
Contents?: true
Size: 871 Bytes
Versions: 15
Compression:
Stored size: 871 Bytes
Contents
# frozen_string_literal: true shared_examples_for "a translated meeting 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: } let(:meeting_component) { create(:meeting_component, participatory_space: participatory_process) } let(:translatable) { true } let(:en_version) { resource.description["en"] } let(:machine_translated) { resource.description["machine_translations"]["ca"] } let(:resource) do create :meeting, component: meeting_component, title: { en: "A nice event", machine_translations: { ca: "Une belle event" } }, description: body end it_behaves_like "a translated event" end end
Version data entries
15 entries across 15 versions & 1 rubygems