Sha256: 1289214498163f133ae470794719e2b998f70b035f6fb5a1d16ce4431cfc7bb4

Contents?: true

Size: 339 Bytes

Versions: 15

Compression:

Stored size: 339 Bytes

Contents

require "rails_helper"

describe ::Dorsale::Alexandrie::Attachment, type: :model do
  it { is_expected.to belong_to :attachable }

  it { is_expected.to validate_presence_of :attachable }
  it { is_expected.to validate_presence_of :file }

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dorsale-2.1.13 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.1.12 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.1.11 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.1.10 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.1.9 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.1.8 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.1.7 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.1.6 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.1.5 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.1.4 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.1.3 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.1.2 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.1.1 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.1.0 spec/models/dorsale/alexandrie/attachment_spec.rb
dorsale-2.0.1 spec/models/dorsale/alexandrie/attachment_spec.rb