diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-12 19:28:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-12 19:28:49 +0000 |
commit | 03dbf8abb881e333256b1cf046b04532b3164d21 (patch) | |
tree | a85915265ada3067d3d94e40e14cf1540f87a1af /test/functional/timelog_controller_test.rb | |
parent | f01b0887ff3ac48bfc7a45b05a8ec17891ddfe19 (diff) | |
download | redmine-03dbf8abb881e333256b1cf046b04532b3164d21.tar.gz redmine-03dbf8abb881e333256b1cf046b04532b3164d21.zip |
Remove special behaviour for listing issue time entries, use a filter for that.
git-svn-id: http://svn.redmine.org/redmine/trunk@15644 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/timelog_controller_test.rb')
-rw-r--r-- | test/functional/timelog_controller_test.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index eafea27c7..25bfea2fa 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -676,20 +676,6 @@ class TimelogControllerTest < ActionController::TestCase assert_select 'form#query_form[action=?]', '/projects/ecookbook/time_entries' end - def test_index_at_issue_level - get :index, :issue_id => 1 - assert_response :success - assert_template 'index' - assert_not_nil assigns(:entries) - assert_equal 2, assigns(:entries).size - assert_not_nil assigns(:total_hours) - assert_equal 154.25, assigns(:total_hours) - # display all time - assert_nil assigns(:from) - assert_nil assigns(:to) - assert_select 'form#query_form[action=?]', '/issues/1/time_entries' - end - def test_index_should_sort_by_spent_on_and_created_on t1 = TimeEntry.create!(:user => User.find(1), :project => Project.find(1), :hours => 1, :spent_on => '2012-06-16', :created_on => '2012-06-16 20:00:00', :activity_id => 10) t2 = TimeEntry.create!(:user => User.find(1), :project => Project.find(1), :hours => 1, :spent_on => '2012-06-16', :created_on => '2012-06-16 20:05:00', :activity_id => 10) @@ -809,15 +795,6 @@ class TimelogControllerTest < ActionController::TestCase end end - def test_index_at_issue_level_should_include_csv_export_dialog - get :index, :issue_id => 3 - assert_response :success - - assert_select '#csv-export-options' do - assert_select 'form[action=?][method=get]', '/issues/3/time_entries.csv' - end - end - def test_index_csv_all_projects with_settings :date_format => '%m/%d/%Y' do get :index, :format => 'csv' |