Project

General

Profile

Defect #33273 » 33273-test.patch

Go MAEDA, 2020-04-12 04:52

View differences:

test/functional/issues_controller_test.rb
2007 2007
    end
2008 2008
  end
2009 2009

  
2010
  def test_index_should_respect_timespan_format
2011
    with_settings :timespan_format => 'minutes' do
2012
      get(
2013
        :index,
2014
        :params => {
2015
          :set_filter => 1,
2016
          :c => %w(estimated_hours total_estimated_hours spent_hours total_spent_hours)
2017
        }
2018
      )
2019
      assert_select 'table.issues tr#issue-1 td.estimated_hours', :text => '200:00'
2020
      assert_select 'table.issues tr#issue-1 td.total_estimated_hours', :text => '200:00'
2021
      assert_select 'table.issues tr#issue-1 td.spent_hours', :text => '154:15'
2022
      assert_select 'table.issues tr#issue-1 td.total_spent_hours', :text => '154:15'
2023
    end
2024
  end
2025

  
2010 2026
  def test_show_by_anonymous
2011 2027
    get(:show, :params => {:id => 1})
2012 2028
    assert_response :success
(1-1/2)