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
0566aa51
Commit
0566aa51
authored
Dec 04, 2015
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spinach fixes
parent
61e5f27f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
22 deletions
+38
-22
app/controllers/unsubscribes_controller.rb
app/controllers/unsubscribes_controller.rb
+1
-1
app/views/groups/group_members/index.html.haml
app/views/groups/group_members/index.html.haml
+12
-1
features/steps/admin/email.rb
features/steps/admin/email.rb
+24
-20
features/support/env.rb
features/support/env.rb
+1
-0
No files found.
app/controllers/unsubscribes_controller.rb
View file @
0566aa51
...
@@ -11,7 +11,7 @@ class UnsubscribesController < ApplicationController
...
@@ -11,7 +11,7 @@ class UnsubscribesController < ApplicationController
@user
=
get_user
@user
=
get_user
if
@user
if
@user
@user
.
admin_unsubscribe!
@user
.
admin_unsubscribe!
Notify
.
send_unsubscribed_notification
(
@user
).
deliver_later
Notify
.
send_unsubscribed_notification
(
@user
.
id
).
deliver_later
end
end
redirect_to
new_user_session_path
,
notice:
'You have been unsubscribed'
redirect_to
new_user_session_path
,
notice:
'You have been unsubscribed'
end
end
...
...
app/views/groups/group_members/index.html.haml
View file @
0566aa51
...
@@ -3,6 +3,17 @@
...
@@ -3,6 +3,17 @@
-
@blank_container
=
true
-
@blank_container
=
true
.group-members-page
.group-members-page
-
if
current_user
&&
current_user
.
can?
(
:admin_group_member
,
@group
)
.panel.panel-default
.panel-heading
Add new user to group
.panel-body
-
if
should_user_see_group_roles?
(
current_user
,
@group
)
%p
.light
Members of group have access to all group projects.
.new-group-member-holder
=
render
"new_group_member"
-
if
@group
.
ldap_synced?
-
if
@group
.
ldap_synced?
.bs-callout.bs-callout-info
.bs-callout.bs-callout-info
The members of this group are managed using LDAP and cannot be added, changed or removed here.
The members of this group are managed using LDAP and cannot be added, changed or removed here.
...
...
features/steps/admin/email.rb
View file @
0566aa51
...
@@ -4,6 +4,7 @@ class Spinach::Features::AdminEmail < Spinach::FeatureSteps
...
@@ -4,6 +4,7 @@ class Spinach::Features::AdminEmail < Spinach::FeatureSteps
include
SharedAdmin
include
SharedAdmin
step
'I submit form with email notification info'
do
step
'I submit form with email notification info'
do
perform_enqueued_jobs
do
ActionMailer
::
Base
.
deliveries
=
[]
ActionMailer
::
Base
.
deliveries
=
[]
@email_text
=
"Your project has been moved."
@email_text
=
"Your project has been moved."
@selected_group
=
Group
.
last
@selected_group
=
Group
.
last
...
@@ -28,6 +29,7 @@ class Spinach::Features::AdminEmail < Spinach::FeatureSteps
...
@@ -28,6 +29,7 @@ class Spinach::Features::AdminEmail < Spinach::FeatureSteps
find
(
'.btn-create'
).
click
find
(
'.btn-create'
).
click
end
end
end
end
end
step
'I should see a notification email is begin sent'
do
step
'I should see a notification email is begin sent'
do
expect
(
find
(
'.flash-notice'
)).
to
have_content
'Email sent'
expect
(
find
(
'.flash-notice'
)).
to
have_content
'Email sent'
...
@@ -46,8 +48,10 @@ class Spinach::Features::AdminEmail < Spinach::FeatureSteps
...
@@ -46,8 +48,10 @@ class Spinach::Features::AdminEmail < Spinach::FeatureSteps
end
end
step
'I click unsubscribe'
do
step
'I click unsubscribe'
do
perform_enqueued_jobs
do
click_button
'Unsubscribe'
click_button
'Unsubscribe'
end
end
end
step
'I get redirected to the sign in path'
do
step
'I get redirected to the sign in path'
do
expect
(
current_path
).
to
eq
root_path
expect
(
current_path
).
to
eq
root_path
...
...
features/support/env.rb
View file @
0566aa51
...
@@ -25,6 +25,7 @@ WebMock.allow_net_connect!
...
@@ -25,6 +25,7 @@ WebMock.allow_net_connect!
Spinach
.
hooks
.
before_run
do
Spinach
.
hooks
.
before_run
do
include
RSpec
::
Mocks
::
ExampleMethods
include
RSpec
::
Mocks
::
ExampleMethods
include
ActiveJob
::
TestHelper
RSpec
::
Mocks
.
setup
RSpec
::
Mocks
.
setup
TestEnv
.
init
(
mailer:
false
)
TestEnv
.
init
(
mailer:
false
)
TestLicense
.
init
TestLicense
.
init
...
...
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