remove trailing white-spaces from test/functional/time_entry_reports_controller_test.rb.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6612 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-08-25 01:13:28 +00:00
parent 5319e7d8cd
commit ff1ba32b5c
1 changed files with 12 additions and 12 deletions

View File

@ -11,7 +11,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase
assert_tag :form,
:attributes => {:action => "/projects/ecookbook/time_entries/report", :id => 'query_form'}
end
def test_report_all_projects
get :report
assert_response :success
@ -19,7 +19,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase
assert_tag :form,
:attributes => {:action => "/time_entries/report", :id => 'query_form'}
end
def test_report_all_projects_denied
r = Role.anonymous
r.permissions.delete(:view_time_entries)
@ -28,7 +28,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase
get :report
assert_redirected_to '/login?back_url=http%3A%2F%2Ftest.host%2Ftime_entries%2Freport'
end
def test_report_all_projects_one_criteria
get :report, :columns => 'week', :from => "2007-04-01", :to => "2007-04-30", :criterias => ['project']
assert_response :success
@ -53,7 +53,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase
assert_equal "162.90", "%.2f" % assigns(:total_hours)
assert_tag :tag => 'th', :content => '2007-03-12'
end
def test_report_one_criteria
get :report, :project_id => 1, :columns => 'week', :from => "2007-04-01", :to => "2007-04-30", :criterias => ['project']
assert_response :success
@ -61,7 +61,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase
assert_not_nil assigns(:total_hours)
assert_equal "8.65", "%.2f" % assigns(:total_hours)
end
def test_report_two_criterias
get :report, :project_id => 1, :columns => 'month', :from => "2007-01-01", :to => "2007-12-31", :criterias => ["member", "activity"]
assert_response :success
@ -69,7 +69,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase
assert_not_nil assigns(:total_hours)
assert_equal "162.90", "%.2f" % assigns(:total_hours)
end
def test_report_one_day
get :report, :project_id => 1, :columns => 'day', :from => "2007-03-23", :to => "2007-03-23", :criterias => ["member", "activity"]
assert_response :success
@ -77,7 +77,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase
assert_not_nil assigns(:total_hours)
assert_equal "4.25", "%.2f" % assigns(:total_hours)
end
def test_report_at_issue_level
get :report, :project_id => 1, :issue_id => 1, :columns => 'month', :from => "2007-01-01", :to => "2007-12-31", :criterias => ["member", "activity"]
assert_response :success
@ -87,7 +87,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase
assert_tag :form,
:attributes => {:action => "/projects/ecookbook/issues/1/time_entries/report", :id => 'query_form'}
end
def test_report_custom_field_criteria
get :report, :project_id => 1, :criterias => ['project', 'cf_1', 'cf_7']
assert_response :success
@ -106,7 +106,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase
# Second custom field column
assert_tag :tag => 'th', :content => 'Billable'
end
def test_report_one_criteria_no_result
get :report, :project_id => 1, :columns => 'week', :from => "1998-04-01", :to => "1998-04-30", :criterias => ['project']
assert_response :success
@ -114,7 +114,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase
assert_not_nil assigns(:total_hours)
assert_equal "0.00", "%.2f" % assigns(:total_hours)
end
def test_report_all_projects_csv_export
get :report, :columns => 'month', :from => "2007-01-01", :to => "2007-06-30", :criterias => ["project", "member", "activity"], :format => "csv"
assert_response :success
@ -125,7 +125,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase
# Total row
assert_equal 'Total,"","","","",154.25,8.65,"","",162.90', lines.last
end
def test_report_csv_export
get :report, :project_id => 1, :columns => 'month', :from => "2007-01-01", :to => "2007-06-30", :criterias => ["project", "member", "activity"], :format => "csv"
assert_response :success
@ -136,5 +136,5 @@ class TimeEntryReportsControllerTest < ActionController::TestCase
# Total row
assert_equal 'Total,"","","","",154.25,8.65,"","",162.90', lines.last
end
end