Sha256: a566cc13872e42e2bf535ada41dfeca1d8a65b1d14c3844894fb4730cd06563e

Contents?: true

Size: 313 Bytes

Versions: 57

Compression:

Stored size: 313 Bytes

Contents

require "rails_helper"

describe ::Dorsale::Alexandrie::AttachmentType, type: :model do
  it { is_expected.to have_many(:attachments).dependent(:nullify) }

  it { is_expected.to validate_presence_of :name }

  it "factory should be valid" do
    expect(create(:alexandrie_attachment_type)).to be_valid
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
dorsale-4.0.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.20.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.19.1 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.19.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.18.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.17.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.16.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.15.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.14.11 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.14.10 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.14.9 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.14.8 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.14.7 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.14.6 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.14.5 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.14.3 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.14.2 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.14.1 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.14.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.13.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb