Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
0ba4134e
Commit
0ba4134e
authored
May 13, 2011
by
Eric Davis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[
#123
] Fix Journal notification test
parent
aa2b0a87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
journal_test.rb
test/unit/journal_test.rb
+4
-2
No files found.
test/unit/journal_test.rb
View file @
0ba4134e
...
...
@@ -96,10 +96,12 @@ class JournalTest < ActiveSupport::TestCase
ActionMailer
::
Base
.
deliveries
.
clear
issue
=
Issue
.
find
(
:first
)
user
=
User
.
find
(
:first
)
journal
=
issue
.
init_journal
(
user
,
issue
)
journal
=
issue
.
init_journal
(
user
,
"A note"
)
JournalObserver
.
instance
.
send_notification
=
false
assert
journal
.
save
assert_difference
(
"Journal.count"
)
do
assert
issue
.
save
end
assert_equal
0
,
ActionMailer
::
Base
.
deliveries
.
size
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