Sha256: e4d972ab961dbc2828267fc5c31d300f502d8798ff6acfcf9860811708cae5ce

Contents?: true

Size: 544 Bytes

Versions: 2

Compression:

Stored size: 544 Bytes

Contents

begin
  require 'spec'
rescue LoadError
  require 'rubygems'
  gem 'rspec'
  require 'spec'
end
require 'spec/autorun'

$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'rocketamf'

def request_fixture(binary_path)
  File.open(File.dirname(__FILE__) + '/fixtures/request/' + binary_path).read
end

def object_fixture(binary_path)
  File.open(File.dirname(__FILE__) + '/fixtures/objects/' + binary_path).read
end

def create_request(binary_path)
  RocketAMF::Request.new.populate_from_stream(StringIO.new(request_fixture(binary_path)))
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
RocketAMF-0.0.7 spec/spec_helper.rb
RocketAMF-0.0.6 spec/spec_helper.rb