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
e2b79f9c
Commit
e2b79f9c
authored
Sep 15, 2010
by
Tim Felgentreff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust some api
parent
a550d4e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
issues_controller_test.rb
test/functional/issues_controller_test.rb
+4
-4
No files found.
test/functional/issues_controller_test.rb
View file @
e2b79f9c
...
...
@@ -772,7 +772,7 @@ class IssuesControllerTest < ActionController::TestCase
# Delete all fixtured journals, a race condition can occur causing the wrong
# journal to get fetched in the next find.
Journal
.
delete_all
Issue
Journal
.
delete_all
# anonymous user
put
:update
,
...
...
@@ -780,7 +780,7 @@ class IssuesControllerTest < ActionController::TestCase
:notes
=>
''
,
:attachments
=>
{
'1'
=>
{
'file'
=>
uploaded_test_file
(
'testfile.txt'
,
'text/plain'
)}}
assert_redirected_to
:action
=>
'show'
,
:id
=>
'1'
j
=
Issue
.
find
(
1
).
journals
.
find
(
:first
,
:order
=>
'id DESC'
)
j
=
Issue
.
find
(
1
).
last_journal
assert
j
.
notes
.
blank?
assert_equal
1
,
j
.
details
.
size
assert_equal
'testfile.txt'
,
j
.
details
.
first
.
last
...
...
@@ -985,8 +985,8 @@ class IssuesControllerTest < ActionController::TestCase
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
assert_equal
'777'
,
journal
.
details
.
first
.
value
assert_equal
'125'
,
journal
.
details
.
first
.
first
assert_equal
'777'
,
journal
.
details
.
first
.
last
end
def
test_bulk_unassign
...
...
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