Guest User

Untitled

a guest
Apr 25th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. diff --git a/core/io/read_nonblock_spec.rb b/core/io/read_nonblock_spec.rb
  2. index 60e0352..84d3a22 100644
  3. --- a/core/io/read_nonblock_spec.rb
  4. +++ b/core/io/read_nonblock_spec.rb
  5. @@ -26,14 +26,16 @@ describe "IO#read_nonblock" do
  6. end
  7.  
  8. not_compliant_on :rubinius, :jruby do
  9. - it "changes the behavior of #read to nonblocking" do
  10. - @write << "hello"
  11. - @read.read_nonblock(5)
  12. -
  13. - # Yes, use normal IO#read here. #read_nonblock has changed the internal
  14. - # flags of @read to be nonblocking, so now any normal read calls raise
  15. - # EAGAIN if there is no data.
  16. - lambda { @read.read(5) }.should raise_error(Errno::EAGAIN)
  17. + ruby_version_is ""..."1.9" do
  18. + it "changes the behavior of #read to nonblocking" do
  19. + @write << "hello"
  20. + @read.read_nonblock(5)
  21. +
  22. + # Yes, use normal IO#read here. #read_nonblock has changed the internal
  23. + # flags of @read to be nonblocking, so now any normal read calls raise
  24. + # EAGAIN if there is no data.
  25. + lambda { @read.read(5) }.should raise_error(Errno::EAGAIN)
  26. + end
  27. end
  28. end
Add Comment
Please, Sign In to add comment