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
759313b1
Commit
759313b1
authored
Nov 05, 2010
by
Tim Felgentreff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more test fixes
parent
4a2f5d37
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
issue_moves_controller.rb
app/controllers/issue_moves_controller.rb
+1
-2
issues_controller_test.rb
test/functional/issues_controller_test.rb
+0
-1
search_controller_test.rb
test/functional/search_controller_test.rb
+1
-1
No files found.
app/controllers/issue_moves_controller.rb
View file @
759313b1
...
...
@@ -17,8 +17,7 @@ class IssueMovesController < ApplicationController
moved_issues
=
[]
@issues
.
each
do
|
issue
|
issue
.
reload
issue
.
init_journal
(
User
.
current
)
issue
.
current_journal
.
notes
=
@notes
if
@notes
.
present?
issue
.
init_journal
(
User
.
current
,
@notes
||
""
)
call_hook
(
:controller_issues_move_before_save
,
{
:params
=>
params
,
:issue
=>
issue
,
:target_project
=>
@target_project
,
:copy
=>
!!
@copy
})
if
r
=
issue
.
move_to_project
(
@target_project
,
new_tracker
,
{
:copy
=>
@copy
,
:attributes
=>
extract_changed_attributes_for_move
(
params
)})
moved_issues
<<
r
...
...
test/functional/issues_controller_test.rb
View file @
759313b1
...
...
@@ -808,7 +808,6 @@ class IssuesControllerTest < ActionController::TestCase
assert_redirected_to
:action
=>
'show'
,
:id
=>
'1'
issue
.
reload
assert
issue
.
journals
.
empty?
# No email should be sent
assert
ActionMailer
::
Base
.
deliveries
.
empty?
end
...
...
test/functional/search_controller_test.rb
View file @
759313b1
...
...
@@ -38,7 +38,7 @@ class SearchControllerTest < ActionController::TestCase
assert
assigns
(
:results
).
include?
(
Changeset
.
find
(
101
))
assert_tag
:dt
,
:attributes
=>
{
:class
=>
/issue/
},
:child
=>
{
:tag
=>
'a'
,
:content
=>
/Add ingredients categories/
},
:sibling
=>
{
:tag
=>
'dd'
,
:content
=>
/
should be classified by categories
/
}
:sibling
=>
{
:tag
=>
'dd'
,
:content
=>
/
A comment with inline image: !picture.jpg!
/
}
assert
assigns
(
:results_by_type
).
is_a?
(
Hash
)
assert_equal
5
,
assigns
(
:results_by_type
)[
'changesets'
]
...
...
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