Skip to content

Commit

Permalink
adding new report specs
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson-mj committed Jan 16, 2025
1 parent cc89c7a commit ab7865c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/models/report_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@
describe "associations" do
it { should belong_to(:user).with_foreign_key("generated_by_id") }
it { should belong_to(:carrierwave_file).with_foreign_key("carrierwave_file_id").class_name("CarrierWave::Storage::ActiveRecord::ActiveRecordFile").optional }
it { should belong_to(:invalidated_by).with_foreign_key("invalidated_by_id").class_name("User").optional }
end

describe "validations" do
it { should validate_presence_of(:file_name) }
end
end

0 comments on commit ab7865c

Please sign in to comment.