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-3.12.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.11.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.10.3 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.10.2 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.10.1 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.10.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.9.8 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.9.7 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.9.6 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.9.5 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.9.4 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.9.3 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.9.2 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.9.1 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.9.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.8.1 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.8.0 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.7.8 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.7.7 spec/models/dorsale/alexandrie/attachment_type_spec.rb
dorsale-3.7.6 spec/models/dorsale/alexandrie/attachment_type_spec.rb