Commit f36051a7 authored by tmaruyama's avatar tmaruyama

code layout clean up of test_create at test/unit/issue_test.rb

git-svn-id: https://svn.redmine.org/redmine/trunk@7476 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent d9a9ace7
......@@ -29,7 +29,10 @@ class IssueTest < ActiveSupport::TestCase
:time_entries
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
issue.reload
assert_equal 1.5, issue.estimated_hours
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment