Sha256: aea2cc4183361bb34673dd2e73ab3c31f26495310e4b65dcfc2c3831a6082850

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'

describe 'hello' do
  before(:each) do
    @server = Epp::Server.new(:server => '127.0.0.1', :tag => 'username', :password => 'password')
  end
  
  context 'when response is successful' do
    before(:each) do
      @server.stub(:send_request).and_return(xml_mock('responses/session/hello.xml'))
      @response = @server.hello
    end
    
    it 'returns version number' do
      @response.version.should == '1.0'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
epp-eis-1.0.2 spec/lib/epp-eis/session_spec.rb
epp-eis-1.0.1 spec/lib/epp-eis/session_spec.rb