Sha256: 9d303e8fd88b61f22a272ee52d28f4167d8e60d7fa70340a0762f7fffdbac44d

Contents?: true

Size: 410 Bytes

Versions: 88

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

shared_examples_for "has component" do
  context "without a component" do
    before do
      subject.component = nil
    end

    it { is_expected.not_to be_valid }
  end

  context "without a valid component" do
    before do
      subject.component = build(:component, manifest_name: "foo-bar")
    end

    it { is_expected.not_to be_valid }
  end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
decidim-core-0.25.0.rc4 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.25.0.rc3 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.25.0.rc2 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.25.0.rc1 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.24.3 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.23.6 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.24.2 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.23.5 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.24.1 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.24.0 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.24.0.rc2 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.23.4 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.24.0.rc1 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.23.3 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.23.2 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.23.1 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.23.1.rc1 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.23.0 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.22.0 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.21.0 lib/decidim/core/test/shared_examples/has_component.rb