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
0ed2af49
Commit
0ed2af49
authored
May 13, 2011
by
Eric Davis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[#408] Removed old JournalDetail test
parent
193b2c7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
issue_test.rb
test/unit/issue_test.rb
+0
-26
No files found.
test/unit/issue_test.rb
View file @
0ed2af49
...
...
@@ -641,32 +641,6 @@ class IssueTest < ActiveSupport::TestCase
assert_equal
new_description
,
journal
.
value
(
"description"
)
end
# TODO: This test has become somewhat obsolete with the new journalized scheme
def
test_saving_twice_should_not_duplicate_journal_details
i
=
Issue
.
find
(
:first
)
i
.
init_journal
(
User
.
find
(
2
),
'Some notes'
)
# initial changes
i
.
subject
=
'New subject'
i
.
done_ratio
=
i
.
done_ratio
+
10
assert_difference
'IssueJournal.count'
do
assert
i
.
save
end
assert
i
.
current_journal
.
changes
.
has_key?
"subject"
assert
i
.
current_journal
.
changes
.
has_key?
"done_ratio"
# 1 more change
i
.
priority
=
IssuePriority
.
find
(
:first
,
:conditions
=>
[
"id <> ?"
,
i
.
priority_id
])
assert_difference
'IssueJournal.count'
do
i
.
save
end
assert
i
.
current_journal
.
changes
.
has_key?
"priority_id"
# no more change
assert_no_difference
'IssueJournal.count'
do
i
.
save
end
end
def
test_all_dependent_issues
IssueRelation
.
delete_all
assert
IssueRelation
.
create!
(
:issue_from
=>
Issue
.
find
(
1
),
:issue_to
=>
Issue
.
find
(
2
),
:relation_type
=>
IssueRelation
::
TYPE_PRECEDES
)
...
...
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