Sha256: 54e188f83a36b2d9ef32c056fe39b77a60256fb013148f0b3e67d470901c4728

Contents?: true

Size: 529 Bytes

Versions: 4

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

describe "Assembly embeds", type: :feature do
  let!(:assembly) { create(:assembly) }

  context "when visiting the embed page for an assembly" do
    before do
      switch_to_host(assembly.organization.host)
      visit resource_locator(assembly).path
      visit "#{current_path}/embed"
    end

    it "renders the page correctly" do
      expect(page).to have_i18n_content(assembly.title)
      expect(page).to have_content(assembly.organization.name)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-0.6.8 decidim-assemblies/spec/features/assembly_embeds_spec.rb
decidim-0.6.7 decidim-assemblies/spec/features/assembly_embeds_spec.rb
decidim-0.6.6 decidim-assemblies/spec/features/assembly_embeds_spec.rb
decidim-0.6.5 decidim-assemblies/spec/features/assembly_embeds_spec.rb