spec/mails_spec.rb in marilyn-rpc-0.0.3 vs spec/mails_spec.rb in marilyn-rpc-0.0.4

- old
+ new

@@ -60,10 +60,11 @@ describe MarilynRPC::MailFactory do it "it should be possible to unpack mails encapsulated in envelopes" do tag = Time.now.to_f mail = MarilynRPC::CallRequestMail.new( tag, "/user", :find_by_name, ["mr.x"]) - envelope = MarilynRPC::Envelope.new(mail.encode) + envelope = MarilynRPC::Envelope.new(mail.encode, + MarilynRPC::CallRequestMail::TYPE) mail = MarilynRPC::MailFactory.unpack(envelope) mail.should be_a(MarilynRPC::CallRequestMail) end end end