Sha256: 610e6a88b95ba589a02d3dac8c76ae4bfb01138748be75874626aa8698643618

Contents?: true

Size: 486 Bytes

Versions: 11

Compression:

Stored size: 486 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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
decidim-core-0.22.0 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.21.0 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.20.1 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.20.0 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.19.1 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.18.1 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.19.0 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.17.2 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.18.0 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.17.1 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
decidim-core-0.17.0 lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb