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
9c252a60
Commit
9c252a60
authored
Feb 26, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove tests for unexisting methods
parent
15c0e58a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
spec/models/project_team_spec.rb
spec/models/project_team_spec.rb
+0
-3
spec/models/user_spec.rb
spec/models/user_spec.rb
+0
-18
No files found.
spec/models/project_team_spec.rb
View file @
9c252a60
...
...
@@ -10,9 +10,6 @@ describe ProjectTeam do
it
{
should
respond_to
(
:masters
)
}
it
{
should
respond_to
(
:reporters
)
}
it
{
should
respond_to
(
:guests
)
}
it
{
should
respond_to
(
:repository_writers
)
}
it
{
should
respond_to
(
:repository_masters
)
}
it
{
should
respond_to
(
:repository_readers
)
}
end
end
spec/models/user_spec.rb
View file @
9c252a60
...
...
@@ -69,28 +69,10 @@ describe User do
describe
"Respond to"
do
it
{
should
respond_to
(
:is_admin?
)
}
it
{
should
respond_to
(
:identifier
)
}
it
{
should
respond_to
(
:name
)
}
it
{
should
respond_to
(
:private_token
)
}
end
describe
'#identifier'
do
it
"should return valid identifier"
do
user
=
build
(
:user
,
email:
"test@mail.com"
)
user
.
identifier
.
should
==
"test_mail_com"
end
it
"should return identifier without + sign"
do
user
=
build
(
:user
,
email:
"test+foo@mail.com"
)
user
.
identifier
.
should
==
"test_foo_mail_com"
end
it
"should conform to Gitolite's required identifier pattern"
do
user
=
build
(
:user
,
email:
"_test@example.com"
)
user
.
identifier
.
should
==
'test_example_com'
end
end
describe
'#generate_password'
do
it
"should execute callback when force_random_password specified"
do
user
=
build
(
:user
,
force_random_password:
true
)
...
...
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