diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-22 09:38:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-22 09:38:21 +0000 |
commit | f3e573b5f891c71f9395562a3f8747ecec801091 (patch) | |
tree | 7987fd3efa8ae985b532a03e7e0f529fa997258d /test/functional/time_entry_reports_controller_test.rb | |
parent | 3602cd637c9ece4e0caa42c335acb7dce719a20e (diff) | |
download | redmine-f3e573b5f891c71f9395562a3f8747ecec801091.tar.gz redmine-f3e573b5f891c71f9395562a3f8747ecec801091.zip |
Replaced remaining #assert_tag with #assert_select.
git-svn-id: http://svn.redmine.org/redmine/trunk@13624 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/time_entry_reports_controller_test.rb')
-rw-r--r-- | test/functional/time_entry_reports_controller_test.rb | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/functional/time_entry_reports_controller_test.rb b/test/functional/time_entry_reports_controller_test.rb index 16a477079..e8551a9ba 100644 --- a/test/functional/time_entry_reports_controller_test.rb +++ b/test/functional/time_entry_reports_controller_test.rb @@ -37,16 +37,14 @@ class TimeEntryReportsControllerTest < ActionController::TestCase get :report, :project_id => 'ecookbook' assert_response :success assert_template 'report' - assert_tag :form, - :attributes => {:action => "/projects/ecookbook/time_entries/report", :id => 'query_form'} + assert_select 'form#query_form[action=?]', '/projects/ecookbook/time_entries/report' end def test_report_all_projects get :report assert_response :success assert_template 'report' - assert_tag :form, - :attributes => {:action => "/time_entries/report", :id => 'query_form'} + assert_select 'form#query_form[action=?]', '/time_entries/report' end def test_report_all_projects_denied @@ -80,7 +78,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase assert_template 'report' assert_not_nil assigns(:report) assert_equal "162.90", "%.2f" % assigns(:report).total_hours - assert_tag :tag => 'th', :content => '2007-03-12' + assert_select 'th', :text => '2007-03-12' end def test_report_one_criteria @@ -135,8 +133,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase assert_template 'report' assert_not_nil assigns(:report) assert_equal "154.25", "%.2f" % assigns(:report).total_hours - assert_tag :form, - :attributes => {:action => "/issues/1/time_entries/report", :id => 'query_form'} + assert_select 'form#query_form[action=?]', '/issues/1/time_entries/report' end def test_report_by_week_should_use_commercial_year @@ -209,8 +206,8 @@ class TimeEntryReportsControllerTest < ActionController::TestCase get :report, :project_id => 1, :criteria => ['status'] assert_response :success assert_template 'report' - assert_tag :tag => 'th', :content => 'Status' - assert_tag :tag => 'td', :content => 'New' + assert_select 'th', :text => 'Status' + assert_select 'td', :text => 'New' end def test_report_all_projects_csv_export |