Sha256: bb550622968546067c61d3243a3dc70735404d21450a88ff8114c27c8fe0bde7
Contents?: true
Size: 806 Bytes
Versions: 1
Compression:
Stored size: 806 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper.rb' describe AMF::Values::AbstractMessage do before :each do @message = AMF::Values::AbstractMessage.new end it "should generate conforming uuids" do @message.send(:rand_uuid).should =~ /[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}/i end end describe AMF::Values::ErrorMessage do before :each do @e = Exception.new('Error message') @e.set_backtrace(['Backtrace 1', 'Backtrace 2']) @message = AMF::Values::ErrorMessage.new(nil, @e) end it "should serialize as a hash in AMF0" it "should extract exception properties correctly" do @message.faultCode.should == 'Exception' @message.faultString.should == 'Error message' @message.faultDetail.should == "Backtrace 1\nBacktrace 2" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-amf-0.0.2 | spec/amf/values/messages_spec.rb |