Sha256: a0eb57b886842942f5866e0cee7cea5ac69e1f4e8cf62aa427e135c5cb25572d
Contents?: true
Size: 690 Bytes
Versions: 4
Compression:
Stored size: 690 Bytes
Contents
# frozen_string_literal: true require "spec_helper" module Decidim module Pages describe Page do let(:page) { create(:page) } subject { page } include_examples "has feature" it { is_expected.to be_valid } context "without a feature" do let(:page) { build :page, feature: nil } it { is_expected.not_to be_valid } end context "without a valid feature" do let(:page) { build :page, feature: build(:feature, manifest_name: "proposals") } it { is_expected.not_to be_valid } end it "has an associated feature" do expect(page.feature).to be_a(Decidim::Feature) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems