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
0
Merge Requests
0
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
Kazuhiko Shiozaki
gitlab-ce
Commits
e982a951
Commit
e982a951
authored
Jan 22, 2013
by
Valeriy Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
745c0dfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
spec/models/issue_spec.rb
spec/models/issue_spec.rb
+0
-4
spec/models/snippet_spec.rb
spec/models/snippet_spec.rb
+0
-1
No files found.
spec/models/issue_spec.rb
View file @
e982a951
...
@@ -28,10 +28,6 @@ describe Issue do
...
@@ -28,10 +28,6 @@ describe Issue do
it
{
should_not
allow_mass_assignment_of
(
:project_id
)
}
it
{
should_not
allow_mass_assignment_of
(
:project_id
)
}
end
end
describe
"Validation"
do
it
{
should
ensure_length_of
(
:description
).
is_within
(
0
..
10000
)
}
end
describe
'modules'
do
describe
'modules'
do
it
{
should
include_module
(
Issuable
)
}
it
{
should
include_module
(
Issuable
)
}
end
end
...
...
spec/models/snippet_spec.rb
View file @
e982a951
...
@@ -38,6 +38,5 @@ describe Snippet do
...
@@ -38,6 +38,5 @@ describe Snippet do
it
{
should
ensure_length_of
(
:title
).
is_within
(
0
..
255
)
}
it
{
should
ensure_length_of
(
:title
).
is_within
(
0
..
255
)
}
it
{
should
validate_presence_of
(
:content
)
}
it
{
should
validate_presence_of
(
:content
)
}
it
{
should
ensure_length_of
(
:content
).
is_within
(
0
..
10_000
)
}
end
end
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