Use fixture instead of factory

This commit is contained in:
Artur Beljajev 2017-11-22 04:39:35 +02:00
parent bc9ece46e6
commit 3ca34fe100

View file

@ -2,7 +2,7 @@ require 'test_helper'
class NewRegistrarTest < ActionDispatch::IntegrationTest
def setup
login_as create(:admin_user)
login_as users(:admin)
end
def test_creates_registrar