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.29.1 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.28.4 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.27.9 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.29.0 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.28.3 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.27.8 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.29.0.rc4 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.29.0.rc3 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.29.0.rc2 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.29.0.rc1 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.28.2 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.27.7 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.28.1 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.27.6 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.26.10 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.26.9 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.28.0 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.27.5 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.28.0.rc5 lib/decidim/core/test/shared_examples/has_component.rb
decidim-core-0.28.0.rc4 lib/decidim/core/test/shared_examples/has_component.rb