diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 07:46:46 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 07:46:46 +0000 |
commit | 15031f6173959e3fc0defceb7d4703c5b6077cfd (patch) | |
tree | 22e4c7b53083ec2a285a9e1ae9c7de0171824831 /test/functional | |
parent | e30aa4b2457b6e061120c5a83641ae6693a34ba1 (diff) | |
download | redmine-15031f6173959e3fc0defceb7d4703c5b6077cfd.tar.gz redmine-15031f6173959e3fc0defceb7d4703c5b6077cfd.zip |
code format cleanup ProjectEnumerationsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12624 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/project_enumerations_controller_test.rb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/functional/project_enumerations_controller_test.rb b/test/functional/project_enumerations_controller_test.rb index 41826ffec..1b559d2e0 100644 --- a/test/functional/project_enumerations_controller_test.rb +++ b/test/functional/project_enumerations_controller_test.rb @@ -149,16 +149,19 @@ class ProjectEnumerationsControllerTest < ActionController::TestCase # aren't setup for mocking. Just create a record now so the # second one is a dupicate parent = TimeEntryActivity.find(9) - TimeEntryActivity.create!({:name => parent.name, :project_id => 1, :position => parent.position, :active => true}) - TimeEntry.create!({:project_id => 1, :hours => 1.0, :user => User.find(1), :issue_id => 3, :activity_id => 10, :spent_on => '2009-01-01'}) - + TimeEntryActivity.create!({:name => parent.name, :project_id => 1, + :position => parent.position, :active => true}) + TimeEntry.create!({:project_id => 1, :hours => 1.0, :user => User.find(1), + :issue_id => 3, :activity_id => 10, :spent_on => '2009-01-01'}) assert_equal 3, TimeEntry.where(:activity_id => 9, :project_id => 1).count assert_equal 1, TimeEntry.where(:activity_id => 10, :project_id => 1).count @request.session[:user_id] = 2 # manager put :update, :project_id => 1, :enumerations => { - "9"=> {"parent_id"=>"9", "custom_field_values"=>{"7" => "1"}, "active"=>"0"}, # Design - "10"=> {"parent_id"=>"10", "custom_field_values"=>{"7"=>"0"}, "active"=>"1"} # Development, Change custom value + # Design + "9"=> {"parent_id"=>"9", "custom_field_values"=>{"7" => "1"}, "active"=>"0"}, + # Development, Change custom value + "10"=> {"parent_id"=>"10", "custom_field_values"=>{"7"=>"0"}, "active"=>"1"} } assert_response :redirect |