##// END OF EJS Templates
code layout clean up of test_create at test/unit/issue_test.rb...
Toshi MARUYAMA -
r7356:fa373ff7f348
parent child
Show More
@@ -29,7 +29,10 class IssueTest < ActiveSupport::TestCase
29 29 :time_entries
30 30
31 31 def test_create
32 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')
32 issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 3,
33 :status_id => 1, :priority => IssuePriority.all.first,
34 :subject => 'test_create',
35 :description => 'IssueTest#test_create', :estimated_hours => '1:30')
33 36 assert issue.save
34 37 issue.reload
35 38 assert_equal 1.5, issue.estimated_hours
General Comments 0
You need to be logged in to leave comments. Login now