Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
35373dac
Commit
35373dac
authored
Mar 29, 2014
by
Lucas Caton
Committed by
Jon Yurek
May 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating Validators::AttachmentSizeValidator specs
parent
5eae051f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/paperclip/validators/attachment_size_validator_spec.rb
+6
-6
No files found.
spec/paperclip/validators/attachment_size_validator_spec.rb
View file @
35373dac
...
...
@@ -151,7 +151,7 @@ describe Paperclip::Validators::AttachmentSizeValidator do
end
should_not_allow_attachment_file_size
11
.
kilobytes
,
message:
"is invalid. (Between 5
120 Bytes and 10240 Bytes
please.)"
message:
"is invalid. (Between 5
KB and 10 KB
please.)"
end
context
"given :less_than and :greater_than"
do
...
...
@@ -162,7 +162,7 @@ describe Paperclip::Validators::AttachmentSizeValidator do
end
should_not_allow_attachment_file_size
11
.
kilobytes
,
message:
"is invalid. (Between 5
120 Bytes and 10240 Bytes
please.)"
message:
"is invalid. (Between 5
KB and 10 KB
please.)"
end
end
...
...
@@ -174,9 +174,9 @@ describe Paperclip::Validators::AttachmentSizeValidator do
end
should_not_allow_attachment_file_size
11
.
kilobytes
,
message:
"must be less than 10
240 Bytes
"
message:
"must be less than 10
KB
"
should_not_allow_attachment_file_size
4
.
kilobytes
,
message:
"must be greater than 5
120 Bytes
"
message:
"must be greater than 5
KB
"
end
context
"given a size range"
do
...
...
@@ -185,9 +185,9 @@ describe Paperclip::Validators::AttachmentSizeValidator do
end
should_not_allow_attachment_file_size
11
.
kilobytes
,
message:
"must be in between 5
120 Bytes and 10240 Bytes
"
message:
"must be in between 5
KB and 10 KB
"
should_not_allow_attachment_file_size
4
.
kilobytes
,
message:
"must be in between 5
120 Bytes and 10240 Bytes
"
message:
"must be in between 5
KB and 10 KB
"
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment