Explorar el Código

Current user should be nil to prevent ActiveJob::DeserializationError errors in tests.


git-svn-id: http://svn.redmine.org/redmine/trunk@17688 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.0.0
Go MAEDA hace 5 años
padre
commit
91f788854d
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      test/unit/custom_field_test.rb

+ 4
- 0
test/unit/custom_field_test.rb Ver fichero

@@ -22,6 +22,10 @@ class CustomFieldTest < ActiveSupport::TestCase
:trackers, :issue_statuses,
:issues

def setup
User.current = nil
end

def test_create
field = UserCustomField.new(:name => 'Money money money', :field_format => 'float')
assert field.save

Cargando…
Cancelar
Guardar