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
d8f6d38d
Commit
d8f6d38d
authored
Sep 12, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix observer test
parent
0523b426
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
spec/observers/user_observer_spec.rb
spec/observers/user_observer_spec.rb
+6
-1
No files found.
spec/observers/user_observer_spec.rb
View file @
d8f6d38d
...
@@ -13,7 +13,7 @@ describe UserObserver do
...
@@ -13,7 +13,7 @@ describe UserObserver do
end
end
context
'when a new user is created'
do
context
'when a new user is created'
do
let
(
:user
)
{
double
(
:user
,
id:
42
,
password:
'P@ssword!'
)
}
let
(
:user
)
{
double
(
:user
,
id:
42
,
password:
'P@ssword!'
,
name:
'John'
,
email:
'u@mail.local'
)
}
let
(
:notification
)
{
double
:notification
}
let
(
:notification
)
{
double
:notification
}
it
'sends an email'
do
it
'sends an email'
do
...
@@ -22,5 +22,10 @@ describe UserObserver do
...
@@ -22,5 +22,10 @@ describe UserObserver do
subject
.
after_create
(
user
)
subject
.
after_create
(
user
)
end
end
it
'trigger logger'
do
Gitlab
::
AppLogger
.
should_receive
(
:info
)
subject
.
after_create
(
user
)
end
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