Convert spec to test

#700
This commit is contained in:
Artur Beljajev 2018-02-06 23:45:11 +02:00
parent 34f7820300
commit cdb01876f7
2 changed files with 13 additions and 21 deletions

View file

@ -0,0 +1,13 @@
require 'test_helper'
class EppSessionTest < ActiveSupport::TestCase
def test_api_user_id_serialization
epp_session = EppSession.new
epp_session.registrar = registrars(:bestnames)
epp_session[:api_user_id] = ActiveRecord::Fixtures.identify(:api_bestnames)
epp_session.save!
epp_session.reload
assert_equal ActiveRecord::Fixtures.identify(:api_bestnames), epp_session[:api_user_id]
end
end