spec/support/epp.rb
# Example usage:
#
#    login_as :gitlab
#
# Use block for temp login:
#
#    login_as :registrar1 do
#      your test code
#      # will make request as registrar1 and logins back to previous session
#    end
#
Example usage:
login_as :gitlab

Use block for temp login.

login_as :registrar1 do
your test code
will make request as registrar1 and logins back to previous session
end
Example usage : login_as : gitlab Use block for temp login . login_as : registrar1 do your test code will make request as registrar1 and logins back to previous session end
def log(req, res)
    return unless ENV['EPP_DOC']
    puts "REQUEST:\n\n```xml\n#{Nokogiri(req)}```\n\n"
    puts "RESPONSE:\n\n```xml\n#{Nokogiri(res)}```\n\n"
  end
def log ( req , res ) return unless ENV [ 'EPP_DOC' ] puts "REQUEST:\n\n```xml\n#{Nokogiri(req)}```\n\n" puts "RESPONSE:\n\n```xml\n#{Nokogiri(res)}```\n\n" end
Example usage:
login_as :gitlab
Example usage : login_as : gitlab
req
<not_specific>
res
<not_specific>