Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added specs for #error! and #stop!.

  • Loading branch information...
commit 52c888f5ee87071b9737eb00de3d144b687f35ee 1 parent 3ba343b
@postmodern authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 spec/instance_spec.rb
View
12 spec/instance_spec.rb
@@ -77,6 +77,18 @@
end
end
+ describe "#stop!" do
+ it "should throw :return, 1" do
+ lambda { subject.stop! }.should throw_symbol(:return,1)
+ end
+ end
+
+ describe "#error!" do
+ it "should throw :return, -1" do
+ lambda { subject.error! }.should throw_symbol(:return,-1)
+ end
+ end
+
describe "callbacks" do
describe "on_message_begin" do
include_examples "callback", {:on_message_begin => :on_path}
Please sign in to comment.
Something went wrong with that request. Please try again.