From 159101e7e468f6fbca2895fe2663b4fd810c2b6b Mon Sep 17 00:00:00 2001 From: "R.I.Pienaar" Date: Mon, 29 Aug 2011 20:06:33 +0100 Subject: [PATCH] 8325 - A default TTL should be supported Make tests more robust by sending in a hash where one is expected rather than an empty string which causes failures. --- spec/unit/message_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/message_spec.rb b/spec/unit/message_spec.rb index 5f193922..a3aa7679 100644 --- a/spec/unit/message_spec.rb +++ b/spec/unit/message_spec.rb @@ -226,7 +226,7 @@ module MCollective end it "should not validate for messages older than TTL" do - m = Message.new("", "message", :type => :request) + m = Message.new({:callerid => "caller", :senderid => "sender"}, "message", :type => :request) m.instance_variable_set("@msgtime", (Time.now.to_i - 120)) expect {