Sha256: 85fed41c349760a812e0812d996b95d4313ed23e66329273ee8117152ad633dd

Contents?: true

Size: 856 Bytes

Versions: 4

Compression:

Stored size: 856 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper.rb'

describe RocketAMF::Request do
  it "should handle remoting message from remote object" do
    req = create_request("remotingMessage.bin")

    req.headers.length.should == 0
    req.messages.length.should == 1
    message = req.messages[0].data
    message.should be_a(RocketAMF::Values::RemotingMessage)
    message.messageId.should == "FE4AF2BC-DD3C-5470-05D8-9971D51FF89D"
    message.body.should == [true]
  end

  it "should handle command message from remote object" do
    req = create_request("commandMessage.bin")

    req.headers.length.should == 0
    req.messages.length.should == 1
    message = req.messages[0].data
    message.should be_a(RocketAMF::Values::CommandMessage)
    message.messageId.should == "7B0ACE15-8D57-6AE5-B9D4-99C2D32C8246"
    message.body.should == {}
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
RocketAMF-0.1.0 spec/amf/request_spec.rb
RocketAMF-0.0.7 spec/amf/request_spec.rb
RocketAMF-0.0.6 spec/amf/request_spec.rb
RocketAMF-0.0.5 spec/amf/request_spec.rb