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
300bc07b
Commit
300bc07b
authored
May 13, 2011
by
Gregor Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[#413] using Hash#to_a.first since Hash#first is not present in 1.8.6
parent
0ed2af49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
issues_controller_test.rb
test/functional/issues_controller_test.rb
+3
-3
No files found.
test/functional/issues_controller_test.rb
View file @
300bc07b
...
...
@@ -962,7 +962,7 @@ class IssuesControllerTest < ActionController::TestCase
j
=
Issue
.
find
(
1
).
last_journal
assert
j
.
notes
.
blank?
assert_equal
1
,
j
.
details
.
size
assert_equal
'testfile.txt'
,
j
.
value
(
j
.
details
.
first
)
assert_equal
'testfile.txt'
,
j
.
value
(
j
.
details
.
to_a
.
first
)
assert_equal
User
.
anonymous
,
j
.
user
mail
=
ActionMailer
::
Base
.
deliveries
.
last
...
...
@@ -1282,8 +1282,8 @@ class IssuesControllerTest < ActionController::TestCase
journal
=
issue
.
journals
.
last
assert_equal
'777'
,
issue
.
custom_value_for
(
2
).
value
assert_equal
1
,
journal
.
details
.
size
assert_equal
'125'
,
journal
.
old_value
(
journal
.
details
.
first
)
assert_equal
'777'
,
journal
.
value
(
journal
.
details
.
first
)
assert_equal
'125'
,
journal
.
old_value
(
journal
.
details
.
to_a
.
first
)
assert_equal
'777'
,
journal
.
value
(
journal
.
details
.
to_a
.
first
)
end
def
test_bulk_update_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