Sha256: b22a80db194153f36b37be47962c947461650ec67776410f5b50f6c33ce350e1

Contents?: true

Size: 398 Bytes

Versions: 27

Compression:

Stored size: 398 Bytes

Contents

class Fixture
  class << self

    def xml
      @xml ||= load :xml
    end

    def xml_dime
      @xml_dime ||= load :xml_dime
    end

    def gzip
      @gzip ||= load :xml, :gz
    end

    def dime
      @dime ||= load :xml_dime, :dime
    end

    private

    def load(fixture, type = :xml)
      File.read File.expand_path("../../fixtures/#{fixture}.#{type}", __FILE__)
    end

  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
httpi-4.0.3 spec/support/fixture.rb
httpi-4.0.2 spec/support/fixture.rb
httpi-4.0.1 spec/support/fixture.rb
httpi-3.0.2 spec/support/fixture.rb
httpi-3.0.1 spec/support/fixture.rb
httpi-3.0.0 spec/support/fixture.rb
httpi-2.5.0 spec/support/fixture.rb
httpi-2.4.5 spec/support/fixture.rb
httpi-2.4.4 spec/support/fixture.rb
httpi-2.4.3 spec/support/fixture.rb
httpi-2.4.2 spec/support/fixture.rb
httpi-2.4.1 spec/support/fixture.rb
httpi-2.4.0 spec/support/fixture.rb
httpi-2.3.0 spec/support/fixture.rb
httpi-2.1.1 spec/support/fixture.rb
httpi-2.2.7 spec/support/fixture.rb
httpi-2.2.6 spec/support/fixture.rb
httpi-2.2.5 spec/support/fixture.rb
httpi-2.2.4 spec/support/fixture.rb
httpi-2.2.3 spec/support/fixture.rb