Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
18c3f93b
Commit
18c3f93b
authored
Jan 19, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure column can hold 8 byte values
parent
2a2e91f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
spec/models/application_setting_spec.rb
spec/models/application_setting_spec.rb
+10
-0
spec/models/ee/group_spec.rb
spec/models/ee/group_spec.rb
+12
-1
spec/models/project_spec.rb
spec/models/project_spec.rb
+11
-0
No files found.
spec/models/application_setting_spec.rb
View file @
18c3f93b
...
...
@@ -176,4 +176,14 @@ describe ApplicationSetting, models: true do
expect
(
setting
.
domain_blacklist
).
to
contain_exactly
(
'example.com'
,
'test.com'
,
'foo.bar'
)
end
end
describe
'#repository_size_limit column'
do
it
'support values up to 8 exabytes'
do
setting
.
update_column
(
:repository_size_limit
,
8
.
exabytes
-
1
)
setting
.
reload
expect
(
setting
.
repository_size_limit
).
to
eql
(
8
.
exabytes
-
1
)
end
end
end
spec/models/ee/group_spec.rb
View file @
18c3f93b
...
...
@@ -100,7 +100,18 @@ describe Group, models: true do
it
'returns the value set locally'
do
group
.
update_attribute
(
:repository_size_limit
,
75
)
expect
(
group
.
actual_size_limit
).
to
eq
(
75
)
expect
(
group
.
actual_size_limit
).
to
eq
(
75
.
megabytes
)
end
end
describe
'#repository_size_limit column'
do
it
'support values up to 8 exabytes'
do
group
=
create
(
:group
)
group
.
update_column
(
:repository_size_limit
,
8
.
exabytes
-
1
)
group
.
reload
expect
(
group
.
repository_size_limit
).
to
eql
(
8
.
exabytes
-
1
)
end
end
end
spec/models/project_spec.rb
View file @
18c3f93b
...
...
@@ -623,6 +623,17 @@ describe Project, models: true do
end
end
describe
'#repository_size_limit column'
do
it
'support values up to 8 exabytes'
do
project
=
create
(
:empty_project
)
project
.
update_column
(
:repository_size_limit
,
8
.
exabytes
-
1
)
project
.
reload
expect
(
project
.
repository_size_limit
).
to
eql
(
8
.
exabytes
-
1
)
end
end
describe
'#default_issues_tracker?'
do
it
"is true if used internal tracker"
do
project
=
build
(
:empty_project
)
...
...
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