spec/mails_spec.rb in marilyn-rpc-0.0.2 vs spec/mails_spec.rb in marilyn-rpc-0.0.3
- old
+ new
@@ -44,14 +44,15 @@
begin
raise Exception.new "TestError"
rescue Exception => ex
exception = ex
end
- mail = MarilynRPC::ExceptionMail.new(exception)
+ mail = MarilynRPC::ExceptionMail.new(123, exception)
data = mail.encode
data.should include("TestError")
mail = MarilynRPC::ExceptionMail.new
mail.decode(data)
+ mail.tag.should == 123
mail.exception.message.should == "TestError"
mail.exception.backtrace.size.should > 1
end
end