Sha256: af06642e2949b7fc68e7a54f020b75b449669c4b7cfd6aa813060e11be05a19d

Contents?: true

Size: 398 Bytes

Versions: 47

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

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

    it { is_expected.not_to be_valid }
  end

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

    it { is_expected.not_to be_valid }
  end
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
decidim-core-0.10.1 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.10.0 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.9.3 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.9.2 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.9.1 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.9.0 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.8.4 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.8.3 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.8.2 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.8.1 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.8.0 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.7.4 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.7.3 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.7.2 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.7.1 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.7.0 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.6.8 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-0.6.8 decidim-core/lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.6.7 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-0.6.7 decidim-core/lib/decidim/core/test/shared_examples/has_feature.rb