Sha256: 3e7095f97b064d6cdb5c71a3c1d83956daff0f4804989204ce79be2cba4acdb0
Contents?: true
Size: 835 Bytes
Versions: 3
Compression:
Stored size: 835 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) data = File.open(File.dirname(__FILE__) + '/fixtures/request/' + binary_path).read data.force_encoding("ASCII-8BIT") if data.respond_to?(:force_encoding) data end def object_fixture(binary_path) data = File.open(File.dirname(__FILE__) + '/fixtures/objects/' + binary_path).read data.force_encoding("ASCII-8BIT") if data.respond_to?(:force_encoding) data end def create_envelope(binary_path) RocketAMF::Envelope.new.populate_from_stream(StringIO.new(request_fixture(binary_path))) end # Helper classes class RubyClass; attr_accessor :baz, :foo; end; class OtherClass; attr_accessor :bar, :foo; end;
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
scotttam-RocketAMF-0.2.2 | spec/spec_helper.rb |
RocketAMF-0.2.1 | spec/spec_helper.rb |
RocketAMF-0.2.0 | spec/spec_helper.rb |