spec/models/direct_upload_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [130/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(build(:direct_upload, :proposal, :documents, attachment: File.new("spec/fixtures/files/clippy.png"))).not_to be_valid
Severity: Minor
Found in spec/models/direct_upload_spec.rb by rubocop

Final newline missing. (https://github.com/bbatsov/ruby-style-guide#newline-eof)
Open

end
Severity: Minor
Found in spec/models/direct_upload_spec.rb by rubocop

Line is too long. [125/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(build(:direct_upload, :proposal, :image, attachment: File.new("spec/fixtures/files/empty.pdf"))).not_to be_valid
Severity: Minor
Found in spec/models/direct_upload_spec.rb by rubocop

Line is too long. [134/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(build(:direct_upload, :budget_investment, :image, attachment: File.new("spec/fixtures/files/empty.pdf"))).not_to be_valid
Severity: Minor
Found in spec/models/direct_upload_spec.rb by rubocop

Line is too long. [103/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(proposal_document_direct_upload.relation.attachment.path).to include('cached_attachments')
Severity: Minor
Found in spec/models/direct_upload_spec.rb by rubocop

Line is too long. [139/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(build(:direct_upload, :budget_investment, :documents, attachment: File.new("spec/fixtures/files/clippy.png"))).not_to be_valid
Severity: Minor
Found in spec/models/direct_upload_spec.rb by rubocop

There are no issues that match your filters.

Category
Status