aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/io/write_nonblock_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/write_nonblock_spec.rb')
-rw-r--r--spec/ruby/core/io/write_nonblock_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/ruby/core/io/write_nonblock_spec.rb b/spec/ruby/core/io/write_nonblock_spec.rb
index 18adfcfc4a..5474e5c6ce 100644
--- a/spec/ruby/core/io/write_nonblock_spec.rb
+++ b/spec/ruby/core/io/write_nonblock_spec.rb
@@ -68,8 +68,10 @@ describe 'IO#write_nonblock' do
context "when exception option is set to false" do
it "returns :wait_writable when the operation would block" do
- loop { break if @write.write_nonblock("a" * 10_000, exception: false) == :wait_writable }
- 1.should == 1
+ loop {
+ break if @write.write_nonblock("a" * 10_000, exception: false) == :wait_writable
+ }
+ @write.write_nonblock("a" * 10_000, exception: false).should == :wait_writable
end
end