Sha256: b37b4408c448b4e4664245dac1a6bbc1f2234b08578be7305b6c200f4a0ed92d
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 Bytes
Contents
begin require 'spec' rescue LoadError require 'rubygems' gem 'rspec' require 'spec' end require 'spec/autorun' $:.unshift(File.dirname(__FILE__) + '/../lib') require 'amf' 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_rack_request(binary_path) env = {'rack.input' => StringIO.new(request_fixture(binary_path))} Rack::AMF::Request.new(env) end # Add reset support to ClassMapping module AMF class ClassMapping def reset @mappings = nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-amf-0.0.3 | spec/spec_helper.rb |