mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
parent
34f7820300
commit
cdb01876f7
2 changed files with 13 additions and 21 deletions
13
test/models/epp_session_test.rb
Normal file
13
test/models/epp_session_test.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue