Sha256: 01c2ce9627940de3fe258c1f40617db96d16dc50eda8968df375d51d202bda21
Contents?: true
Size: 1.33 KB
Versions: 17
Compression:
Stored size: 1.33 KB
Contents
# frozen_string_literal: true shared_examples "amendment rejected event" do include_context "when a simple event" let(:resource) { emendation } let(:event_name) { "decidim.events.amendments.amendment_rejected" } it_behaves_like "a simple event" it_behaves_like "a simple event email" it_behaves_like "a simple event notification" let(:emendation_author_nickname) { "@#{emendation.creator_author.nickname}" } let(:emendation_path) { Decidim::ResourceLocatorPresenter.new(emendation).path } let(:emendation_author_path) { Decidim::UserPresenter.new(emendation.creator_author).profile_path } let(:amendable_path) { Decidim::ResourceLocatorPresenter.new(amendable).path } let(:email_subject) { "Amendment rejected for #{amendable_title} from #{emendation_author_nickname}" } let(:email_intro) { "An amendment has been rejected for #{amendable_title}. You can see it from this page:" } let(:email_outro) { "You have received this notification because you are following #{amendable_title}. You can stop receiving notifications following the previous link." } let(:notification_title) { "The <a href=\"#{emendation_path}\">amendment</a> created by <a href=\"#{emendation_author_path}\">#{emendation_author_nickname}</a> has been rejected for <a href=\"#{amendable_path}\">#{amendable_title}</a>." } # rubocop:disable Layout/LineLength end
Version data entries
17 entries across 17 versions & 1 rubygems