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
3b51eb54
Commit
3b51eb54
authored
Sep 14, 2010
by
Tim Felgentreff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 2 more tests
parent
e8af8d19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
query.rb
app/models/query.rb
+1
-1
issues_controller_test.rb
test/functional/issues_controller_test.rb
+1
-1
No files found.
app/models/query.rb
View file @
3b51eb54
...
...
@@ -490,7 +490,7 @@ class Query < ActiveRecord::Base
# Returns the journals
# Valid options are :order, :offset, :limit
def
journals
(
options
=
{})
Journal
.
find
:all
,
:include
=>
[
:user
,
{
:issue
=>
[
:project
,
:author
,
:tracker
,
:status
]}
],
Journal
.
find
:all
,
:include
=>
[
:user
,
:journaled
],
:conditions
=>
statement
,
:order
=>
options
[
:order
],
:limit
=>
options
[
:limit
],
...
...
test/functional/issues_controller_test.rb
View file @
3b51eb54
...
...
@@ -996,7 +996,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_response
302
issue
=
Issue
.
find
(
1
)
journal
=
issue
.
journals
.
find
(
:first
,
:order
=>
'created_
on
DESC'
)
journal
=
issue
.
journals
.
find
(
:first
,
:order
=>
'created_
at
DESC'
)
assert_equal
'777'
,
issue
.
custom_value_for
(
2
).
value
assert_equal
1
,
journal
.
details
.
size
assert_equal
'125'
,
journal
.
details
.
first
.
old_value
...
...
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