diff --git a/test/functional/journals_controller_test.rb b/test/functional/journals_controller_test.rb index b05940a2c..5d59c12a6 100644 --- a/test/functional/journals_controller_test.rb +++ b/test/functional/journals_controller_test.rb @@ -99,9 +99,17 @@ class JournalsControllerTest < Redmine::ControllerTest } @fields.each_with_index do |field, i| if visible_fields.include?(field) - assert_select "content[type=html]", { :text => /NewValue#{i}/, :count => 1 }, "User #{user.id} was not able to view #{field.name} in API" + assert_select( + "content[type=html]", + {:text => /NewValue#{i}/, :count => 1}, + "User #{user.id} was not able to view #{field.name} in API" + ) else - assert_select "content[type=html]", { :text => /NewValue#{i}/, :count => 0 }, "User #{user.id} was able to view #{field.name} in API" + assert_select( + "content[type=html]", + {:text => /NewValue#{i}/, :count => 0}, + "User #{user.id} was able to view #{field.name} in API" + ) end end end