Sha256: f78c6c011a96fe2535c36f1e9a9c36a75cf944118760c472d03b0635f1c86e4c

Contents?: true

Size: 541 Bytes

Versions: 20

Compression:

Stored size: 541 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

describe "Show a page", type: :feature do
  include_context "feature"
  let(:manifest_name) { "pages" }

  let(:body) do
    {
      "en" => "<p>Content</p>",
      "ca" => "<p>Contingut</p>",
      "es" => "<p>Contenido</p>"
    }
  end

  let!(:page_feature) { create(:page, feature: feature, body: body) }

  describe "page show" do
    before do
      visit_feature
    end

    it "renders the content of the page" do
      expect(page).to have_content("Content")
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
decidim-0.6.8 decidim-pages/spec/features/page_show_spec.rb
decidim-0.6.7 decidim-pages/spec/features/page_show_spec.rb
decidim-0.6.6 decidim-pages/spec/features/page_show_spec.rb
decidim-0.6.5 decidim-pages/spec/features/page_show_spec.rb
decidim-0.6.4 decidim-pages/spec/features/page_show_spec.rb
decidim-0.6.3 decidim-pages/spec/features/page_show_spec.rb
decidim-0.6.2 decidim-pages/spec/features/page_show_spec.rb
decidim-0.6.1 decidim-pages/spec/features/page_show_spec.rb
decidim-0.6.0 decidim-pages/spec/features/page_show_spec.rb
decidim-0.5.1 decidim-pages/spec/features/page_show_spec.rb
decidim-0.5.0 decidim-pages/spec/features/page_show_spec.rb
decidim-0.4.4 decidim-pages/spec/features/page_show_spec.rb
decidim-0.4.3 decidim-pages/spec/features/page_show_spec.rb
decidim-0.4.2 decidim-pages/spec/features/page_show_spec.rb
decidim-0.4.1 decidim-pages/spec/features/page_show_spec.rb
decidim-0.4.0 decidim-pages/spec/features/page_show_spec.rb
decidim-0.3.2 decidim-pages/spec/features/page_show_spec.rb
decidim-0.3.1 decidim-pages/spec/features/page_show_spec.rb
decidim-0.3.0 decidim-pages/spec/features/page_show_spec.rb
decidim-0.2.0 decidim-pages/spec/features/page_show_spec.rb