Sha256: d968fc05019b316a8471c8c6650f5ccf3eaa2562557c8ab6cbe727ab64e3a6ff

Contents?: true

Size: 397 Bytes

Versions: 6

Compression:

Stored size: 397 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

6 entries across 6 versions & 1 rubygems

Version Path
decidim-core-0.1.0 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.0.8.1 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.0.7 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.0.6 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.0.5 lib/decidim/core/test/shared_examples/has_feature.rb
decidim-core-0.0.3 lib/decidim/core/test/shared_examples/has_feature.rb