diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2020-04-05 17:29:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2020-04-05 17:29:53 +0000 |
commit | d955672a7dc23da260836f13d43af87079b43b33 (patch) | |
tree | fce8551f8c99f31a9406ea8aeb3b47eded9f286a /test/integration/api_test | |
parent | 895fc12d56c17a9f125e9ad591656281c5fda908 (diff) | |
download | redmine-d955672a7dc23da260836f13d43af87079b43b33.tar.gz redmine-d955672a7dc23da260836f13d43af87079b43b33.zip |
Reverted r19669 and r19670 (#32774).
git-svn-id: http://svn.redmine.org/redmine/trunk@19675 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test')
-rw-r--r-- | test/integration/api_test/time_entries_test.rb | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/test/integration/api_test/time_entries_test.rb b/test/integration/api_test/time_entries_test.rb index dbdf15d89..33aa88aa1 100644 --- a/test/integration/api_test/time_entries_test.rb +++ b/test/integration/api_test/time_entries_test.rb @@ -144,44 +144,6 @@ class Redmine::ApiTest::TimeEntriesTest < Redmine::ApiTest::Base assert_select 'errors error', :text => "Hours cannot be blank" end - test "POST /time_entries.xml with :project_id for other user" do - Role.find_by_name('Manager').add_permission! :log_time_for_other_users - - assert_difference 'TimeEntry.count' do - post( - '/time_entries.xml', - :params => - {:time_entry => - {:project_id => '1', :spent_on => '2010-12-02', :user_id => '3', - :hours => '3.5', :activity_id => '11'}}, - :headers => credentials('jsmith')) - assert_response :created - end - - entry = TimeEntry.order('id DESC').first - assert_equal 3, entry.user_id - assert_equal 2, entry.author_id - end - - test "POST /time_entries.xml with :issue_id for other user" do - Role.find_by_name('Manager').add_permission! :log_time_for_other_users - - assert_difference 'TimeEntry.count' do - post( - '/time_entries.xml', - :params => - {:time_entry => - {:issue_id => '1', :spent_on => '2010-12-02', :user_id => '3', - :hours => '3.5', :activity_id => '11'}}, - :headers => credentials('jsmith')) - assert_response :created - end - - entry = TimeEntry.order('id DESC').first - assert_equal 3, entry.user_id - assert_equal 2, entry.author_id - end - test "PUT /time_entries/:id.xml with valid parameters should update time entry" do assert_no_difference 'TimeEntry.count' do put( |