Sha256: 6763a5f647c53eef17580d7ecab8c3c1183b53749030147baef89a5d46c071df
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
# frozen_string_literal: true require "rails_helper" module Archangel RSpec.describe Metatag, type: :model do context "validations" do it "has a unique name scoped to metatagable_type and metatagable_id" do resource = build(:metatag) expect(resource).to( validate_uniqueness_of(:name) .scoped_to(:metatagable_type, :metatagable_id) ) end end context "associations" do it { is_expected.to belong_to(:metatagable) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
archangel-0.3.0 | spec/models/archangel/metatag_spec.rb |