Sha256: adbf195381d1da7dc4e0d914230c6e449f86f73ffda9f48d971c6ee30cea300e
Contents?: true
Size: 652 Bytes
Versions: 1
Compression:
Stored size: 652 Bytes
Contents
# frozen_string_literal: true require "rails_helper" module Archangel RSpec.describe Design, type: :model do subject(:resource) { described_class.new } context "with validations" do it { is_expected.to validate_presence_of(:content) } it { is_expected.to validate_presence_of(:name) } it { is_expected.to allow_value(true).for(:partial) } it { is_expected.to allow_value(false).for(:partial) } it { is_expected.not_to allow_value(nil).for(:partial) } it { is_expected.to allow_value("{{ foo }}").for(:content) } it { is_expected.not_to allow_value("{{ foo }").for(:content) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
archangel-0.4.0 | spec/unit/models/archangel/design_spec.rb |