Sha256: 58a07cbfd16307e5c9b31350ae842f8d14de6c4678ac1e1e3a41ac124e0da4f1

Contents?: true

Size: 485 Bytes

Versions: 45

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

shared_examples "an uncommentable component" do
  let!(:component) do
    create(:component,
           manifest: manifest,
           participatory_space: participatory_space)
  end

  it "doesn't displays comments count" do
    component.update!(settings: { comments_enabled: false })

    visit_component

    resources.each do |ressource|
      expect(page).not_to have_link(resource_locator(ressource).path)
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
decidim-core-0.27.9 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.27.8 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.27.7 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.27.6 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.26.10 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.26.9 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.27.5 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.26.8 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.27.4 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.27.3 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.26.7 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.26.5 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.27.2 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.27.1 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.26.4 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.27.0 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.26.3 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.27.0.rc2 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.27.0.rc1 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.26.2 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb