Sha256: e0cff25c7bd280fcad4229173fe0262e1e810f4a34db50acdfe867c4343036dc
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true require "spec_helper" describe "Proposal embeds", type: :feature do include_context "feature" let(:manifest_name) { "proposals" } let!(:proposal) { create(:proposal, feature: feature) } context "when visiting the embed page for a proposal" do before do visit resource_locator(proposal).path visit "#{current_path}/embed" end it "renders the page correctly" do expect(page).to have_content(proposal.title) expect(page).to have_content(organization.name) end context "when the participatory_space is a process" do it "shows the process name" do expect(page).to have_i18n_content(participatory_process.title) end end context "when the participatory_space is an assembly" do let(:assembly) do create(:assembly, organization: organization) end let(:participatory_space) { assembly } it "shows the assembly name" do expect(page).to have_i18n_content(assembly.title) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems