diff --git a/test/functional/timelog_custom_fields_visibility_test.rb b/test/functional/timelog_custom_fields_visibility_test.rb index c90eadc06..ac21d76ef 100644 --- a/test/functional/timelog_custom_fields_visibility_test.rb +++ b/test/functional/timelog_custom_fields_visibility_test.rb @@ -97,10 +97,15 @@ class TimelogCustomFieldsVisibilityTest < ActionController::TestCase user = User.generate! User.add_to_project(user, p1, Role.find_all_by_id(1,3)) User.add_to_project(user, p2, Role.find_all_by_id(3)) - TimeEntry.generate!(:issue => Issue.generate!(:project => p1, :tracker_id => 1, :custom_field_values => {@field2.id => 'ValueA'})) - TimeEntry.generate!(:issue => Issue.generate!(:project => p2, :tracker_id => 1, :custom_field_values => {@field2.id => 'ValueB'})) - TimeEntry.generate!(:issue => Issue.generate!(:project => p1, :tracker_id => 1, :custom_field_values => {@field2.id => 'ValueC'})) - + TimeEntry.generate!( + :issue => Issue.generate!(:project => p1, :tracker_id => 1, + :custom_field_values => {@field2.id => 'ValueA'})) + TimeEntry.generate!( + :issue => Issue.generate!(:project => p2, :tracker_id => 1, + :custom_field_values => {@field2.id => 'ValueB'})) + TimeEntry.generate!( + :issue => Issue.generate!(:project => p1, :tracker_id => 1, + :custom_field_values => {@field2.id => 'ValueC'})) @request.session[:user_id] = user.id get :index, :c => ["hours", "issue.cf_#{@field2.id}"] assert_select 'td', :text => 'ValueA'