spec/models/dorsale/alexandrie/attachment_spec.rb in dorsale-2.1.13 vs spec/models/dorsale/alexandrie/attachment_spec.rb in dorsale-2.1.14
- old
+ new
@@ -1,10 +1,12 @@
require "rails_helper"
describe ::Dorsale::Alexandrie::Attachment, type: :model do
it { is_expected.to belong_to :attachable }
+ it { is_expected.to belong_to :sender }
it { is_expected.to validate_presence_of :attachable }
+ it { is_expected.to validate_presence_of :sender }
it { is_expected.to validate_presence_of :file }
it "factory should be valid" do
expect(create(:alexandrie_attachment)).to be_valid
end