Include EppXml gem

This commit is contained in:
Martin Lensment 2014-10-22 15:58:09 +03:00
parent cc8571de26
commit d52eb161c9
3 changed files with 13 additions and 1 deletions

View file

@ -84,6 +84,9 @@ group :development, :test do
# EPP client
gem 'epp', '~> 1.4.0'
# EPP XMLs
gem 'epp-xml', git: 'git@github.com:gitlabeu/epp-xml.git'
# Replacement for fixtures
gem 'fabrication', '~> 2.11.3'

View file

@ -1,3 +1,11 @@
GIT
remote: git@github.com:gitlabeu/epp-xml.git
revision: c9f4de93b942bcf8f19c59e7bf5680961593ddd3
specs:
epp-xml (0.0.1)
activesupport (~> 4.1, >= 4.1.4)
builder (~> 3.2, >= 3.2.2)
GEM
remote: https://rubygems.org/
specs:
@ -359,6 +367,7 @@ DEPENDENCIES
database_cleaner (~> 1.3.0)
devise (~> 3.3.0)
epp (~> 1.4.0)
epp-xml!
fabrication (~> 2.11.3)
faker (~> 1.3.0)
guard (~> 2.6.1)

View file

@ -2,7 +2,7 @@ require 'rails_helper'
describe 'EPP Session', epp: true do
let(:server_gitlab) { Epp::Server.new({ server: 'localhost', tag: 'gitlab', password: 'ghyt9e4fu', port: 701 }) }
let(:login_xml_cache) { login_xml }
let(:login_xml_cache) { EppXml::Session.login(clID: { value: 'gitlab' }, pw: { value: 'ghyt9e4fu' }) }
context 'when not connected' do
it 'greets client upon connection' do