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.26.8 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.27.4 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.27.3 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.26.7 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.26.5 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.27.2 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.27.1 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.26.4 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.27.0 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.26.3 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.27.0.rc2 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.27.0.rc1 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.26.2 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.26.1 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.26.0 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.26.0.rc2 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.26.0.rc1 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.25.2 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.25.1 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.25.0 lib/decidim/core/test/shared_examples/has_component.rb