test/test_event_source.rb in rest-builder-0.9.0 vs test/test_event_source.rb in rest-builder-0.9.1
- old
+ new
@@ -126,9 +126,10 @@
end.onerror do |error|
error.should.kind_of? EOFError
end.onreconnect do |error, sock|
error.should.kind_of? EOFError
+ error.backtrace.should.grep(/#{__FILE__}/).should.not.empty?
sock.should.respond_to? :read
!m.empty? # not empty to reconnect
end.start.wait
m.should.empty?