end
end
+ def test_index_should_respect_timespan_format
+ with_settings :timespan_format => 'minutes' do
+ get(
+ :index,
+ :params => {
+ :set_filter => 1,
+ :c => %w(estimated_hours total_estimated_hours spent_hours total_spent_hours)
+ }
+ )
+ assert_select 'table.issues tr#issue-1 td.estimated_hours', :text => '200:00'
+ assert_select 'table.issues tr#issue-1 td.total_estimated_hours', :text => '200:00'
+ assert_select 'table.issues tr#issue-1 td.spent_hours', :text => '154:15'
+ assert_select 'table.issues tr#issue-1 td.total_spent_hours', :text => '154:15'
+ end
+ end
+
def test_show_by_anonymous
get(:show, :params => {:id => 1})
assert_response :success