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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
3b88636d
Commit
3b88636d
authored
Apr 01, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
adccf3b4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
spec/features/profile_spec.rb
spec/features/profile_spec.rb
+3
-2
spec/features/security/project_access_spec.rb
spec/features/security/project_access_spec.rb
+1
-1
spec/support/test_env.rb
spec/support/test_env.rb
+1
-5
No files found.
spec/features/profile_spec.rb
View file @
3b88636d
...
...
@@ -12,8 +12,9 @@ describe "Profile account page" do
Gitlab
.
config
.
gitlab
.
stub
(
:signup_enabled
).
and_return
(
true
)
visit
account_profile_path
end
it
{
page
.
should
have_content
(
"Remove account"
)
}
it
"should delete the account"
,
js:
true
do
expect
{
click_link
"Delete account"
}.
to
change
{
User
.
count
}.
by
(
-
1
)
current_path
.
should
==
new_user_session_path
...
...
@@ -45,4 +46,4 @@ describe "Profile account page" do
current_path
.
should
==
account_profile_path
end
end
end
\ No newline at end of file
end
spec/features/security/project_access_spec.rb
View file @
3b88636d
...
...
@@ -14,7 +14,7 @@ describe "Application access" do
end
describe
"Project"
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
_with_code
)
}
let
(
:master
)
{
create
(
:user
)
}
let
(
:guest
)
{
create
(
:user
)
}
...
...
spec/support/test_env.rb
View file @
3b88636d
...
...
@@ -29,16 +29,12 @@ module TestEnv
remove_key:
true
)
fake_satellite
=
stub
(
Gitlab
::
Satellite
::
Satellite
.
any_instance
.
stub
(
exists?:
true
,
destroy:
true
,
create:
true
)
Project
.
any_instance
.
stub
(
satellite:
fake_satellite
)
MergeRequest
.
any_instance
.
stub
(
check_if_can_be_merged:
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