You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mc...@apache.org on 2013/10/01 23:15:10 UTC
svn commit: r1528218 -
/qpid/proton/trunk/proton-c/bindings/ruby/spec/qpid/proton/messenger_spec.rb
Author: mcpierce
Date: Tue Oct 1 21:15:09 2013
New Revision: 1528218
URL: http://svn.apache.org/r1528218
Log:
PROTON-431: Fixed the Ruby spec tests.
They weren't updated with the changes to the Messenger.accept and
Messenger.settle API changes.
Modified:
qpid/proton/trunk/proton-c/bindings/ruby/spec/qpid/proton/messenger_spec.rb
Modified: qpid/proton/trunk/proton-c/bindings/ruby/spec/qpid/proton/messenger_spec.rb
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/ruby/spec/qpid/proton/messenger_spec.rb?rev=1528218&r1=1528217&r2=1528218&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/ruby/spec/qpid/proton/messenger_spec.rb (original)
+++ qpid/proton/trunk/proton-c/bindings/ruby/spec/qpid/proton/messenger_spec.rb Tue Oct 1 21:15:09 2013
@@ -232,18 +232,6 @@ module Qpid
it "returns a tracker's status"
- it "raises an error when settling with a nil flag" do
- expect {
- @messenger.settle(@tracker, nil)
- }.to raise_error(TypeError)
- end
-
- it "raises an error when settling with an invalid flag" do
- expect {
- @messenger.settle(@tracker, rand(256) + 2)
- }.to raise_error(TypeError)
- end
-
describe "and subscribed to an address" do
before (:each) do
@@ -310,24 +298,12 @@ module Qpid
it "raises an error when settling with a nil tracker" do
expect {
- @messenger.settle(nil, Qpid::Proton::Tracker::CUMULATIVE)
- }.to raise_error(TypeError)
- end
-
- it "raises an error when settling with a nil flag" do
- expect {
- @messenger.settle(@tracker, nil)
- }.to raise_error(TypeError)
- end
-
- it "raises an error when settling with an invalid flag" do
- expect {
- @messenger.settle(@tracker, "farkle")
+ @messenger.settle(nil)
}.to raise_error(TypeError)
end
it "can settle a tracker's status" do
- @messenger.settle(@tracker, Qpid::Proton::Tracker::CUMULATIVE)
+ @messenger.settle(@tracker)
end
it "raises an error when checking status on a nil tracker" do
@@ -349,52 +325,19 @@ module Qpid
end
it "has an incoming tracker"
-
- it "raises an error when rejecting with a nil flag" do
- expect {
- @messenger.accept(@tracker, nil)
- }.to raise_error(TypeError)
- end
-
- it "raises an error when rejecting with an invalid flag" do
- flag = -1
- expect {
- @messenger.accept(@tracker, flag)
- }.to raise_error(TypeError)
- end
-
it "can reject an incoming message"
- it "raises an error when accepting with a nil tracker" do
- expect {
- @messenger.reject(nil, Qpid::Proton::Tracker::CUMULATIVE)
- }.to raise_error(TypeError)
- end
-
it "raises an error when accepting with an invalid tracker" do
expect {
- @messenger.accept(random_string(16), Qpid::Proton::Tracker::CUMULATIVE)
+ @messenger.accept(random_string(16))
}.to raise_error(TypeError)
end
- it "raises an error when accepting with a nil flag" do
- expect {
- @messenger.accept(@tracker, nil)
- }.to raise_error(TypeError)
- end
-
- it "raises an error when accepting with an invalid flag"
it "can accept a message"
- it "raises an error when rejecting with a nil tracker" do
- expect {
- @messenger.accept(nil, Qpid::Proton::Tracker::CUMULATIVE)
- }.to raise_error(TypeError)
- end
-
it "raises an error when rejecting with an invalid tracker" do
expect {
- @messenger.accept(random_string(16), Qpid::Proton::Tracker::CUMULATIVE)
+ @messenger.accept(random_string(16))
}.to raise_error(TypeError)
end
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org