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.4.1 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.4.3 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.4.0 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.3.2 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.3.1 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.3.0 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.2.0 lib/decidim/core/test/shared_examples/has_feature.rb