Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
projects.thm.de
GitLab
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
Hide 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 @@
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
"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