code layout clean up of test_create at test/unit/issue_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7476 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
615540a12c
commit
fa373ff7f3
@ -29,7 +29,10 @@ class IssueTest < ActiveSupport::TestCase
|
|||||||
:time_entries
|
:time_entries
|
||||||
|
|
||||||
def test_create
|
def test_create
|
||||||
issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 3, :status_id => 1, :priority => IssuePriority.all.first, :subject => 'test_create', :description => 'IssueTest#test_create', :estimated_hours => '1:30')
|
issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 3,
|
||||||
|
:status_id => 1, :priority => IssuePriority.all.first,
|
||||||
|
:subject => 'test_create',
|
||||||
|
:description => 'IssueTest#test_create', :estimated_hours => '1:30')
|
||||||
assert issue.save
|
assert issue.save
|
||||||
issue.reload
|
issue.reload
|
||||||
assert_equal 1.5, issue.estimated_hours
|
assert_equal 1.5, issue.estimated_hours
|
||||||
|
Loading…
x
Reference in New Issue
Block a user