Fix line lenght issues on spec files
This commit is contained in:
@@ -34,9 +34,10 @@ shared_examples "document validations" do |documentable_factory|
|
||||
|
||||
it "is not valid for attachments larger than documentable max_file_size definition" do
|
||||
document.stub(:attachment_file_size).and_return(maxfilesize.megabytes + 1.byte)
|
||||
max_size_error_message = "must be in between 0 Bytes and #{maxfilesize} MB"
|
||||
|
||||
expect(document).not_to be_valid
|
||||
expect(document.errors[:attachment]).to include "must be in between 0 Bytes and #{maxfilesize} MB"
|
||||
expect(document.errors[:attachment]).to include max_size_error_message
|
||||
end
|
||||
|
||||
it "is not valid without a user_id" do
|
||||
@@ -59,4 +60,4 @@ shared_examples "document validations" do |documentable_factory|
|
||||
expect(document).not_to be_valid
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user