Sha256: 20aedc7002cb3ccde7cad4dbd86b9f90fce0eaf481578eb60b2815b4032254b3

Contents?: true

Size: 772 Bytes

Versions: 27

Compression:

Stored size: 772 Bytes

Contents

class ResponseFixture

  def self.authentication(value = nil)
    case value
      when :to_hash
        { :success => true,
          :authentication_value => {
            :token => "a68d1d6379b62ff339a0e0c69ed4d9cf",
            :token_hash => "AAAJxA;cIedoT;mY10ExZwG6JuKgp2OYKxow==",
            :client => "radclient"
          }
        }
      else
        @@authentication ||= load_fixture :authentication
    end
  end

  def self.soap_fault
    @@soap_fault ||= load_fixture :soap_fault
  end

  def self.soap_fault12
    @@soap_fault12 ||= load_fixture :soap_fault12
  end

  def self.multi_ref
    @@multi_ref ||= load_fixture :multi_ref
  end

private

  def self.load_fixture(fixture)
    File.read File.dirname(__FILE__) + "/xml/#{fixture}.xml"
  end

end

Version data entries

27 entries across 27 versions & 6 rubygems

Version Path
savon-xaop-0.7.2.7 spec/fixtures/response/response_fixture.rb
savon-xaop-0.7.2.6 spec/fixtures/response/response_fixture.rb
johnreitano-savon-0.7.7.5 spec/fixtures/response/response_fixture.rb
johnreitano-savon-0.7.7.4 spec/fixtures/response/response_fixture.rb
johnreitano-savon-0.7.7.3 spec/fixtures/response/response_fixture.rb
johnreitano-savon-0.7.7.2 spec/fixtures/response/response_fixture.rb
tictoc-savon-0.7.9 spec/fixtures/response/response_fixture.rb
savon-xaop-0.7.2.5 spec/fixtures/response/response_fixture.rb
pyu-savon-0.7.9.3 spec/fixtures/response/response_fixture.rb
johnreitano-savon-0.7.7.1 spec/fixtures/response/response_fixture.rb
johnreitano-savon-0.7.2.1 spec/fixtures/response/response_fixture.rb
savon-xaop-0.7.2.4 spec/fixtures/response/response_fixture.rb
savon-xaop-0.7.2.3 spec/fixtures/response/response_fixture.rb
hoopla-savon-0.7.9 spec/fixtures/response/response_fixture.rb
savon-0.7.9 spec/fixtures/response/response_fixture.rb
savon-0.7.8 spec/fixtures/response/response_fixture.rb
savon-0.7.7 spec/fixtures/response/response_fixture.rb
savon-xaop-0.7.2.2 spec/fixtures/response/response_fixture.rb
hoopla-savon-0.7.6 spec/fixtures/response/response_fixture.rb
savon-0.7.6 spec/fixtures/response/response_fixture.rb