File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6666 buffer . get_string . should == @string . b
6767
6868 buffer . should_not . readonly?
69+ buffer . should_not . locked?
6970
7071 buffer . set_string ( "ghost shell" )
7172 @string . should == "ghost shellg"
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def open_big_file_fixture
7373 @buffer . should . valid?
7474 end
7575
76- platform_is_not :windows , :openbsd do
76+ guard -> { Process . respond_to? ( :fork ) } do
7777 it "is shareable across processes" do
7878 file_name = tmp ( "shared_buffer" )
7979 @file = File . open ( file_name , "w+" )
@@ -312,7 +312,7 @@ def open_big_file_fixture
312312 @file . read . should == "abcâdef\n " . b
313313 end
314314
315- platform_is_not :windows do
315+ guard -> { Process . respond_to? ( :fork ) } do
316316 it "is not shared across processes" do
317317 file_name = tmp ( "shared_buffer" )
318318 @file = File . open ( file_name , "w+" )
Original file line number Diff line number Diff line change 9191 context "with a slice of a buffer" do
9292 it "transfers source to a new slice, not touching the buffer" do
9393 @buffer = IO ::Buffer . new ( 4 )
94- slice = @buffer . slice ( 0 , 2 )
9594 @buffer . set_string ( "test" )
95+ slice = @buffer . slice ( 0 , 2 )
96+ slice . get_string . should == "te"
9697
9798 new_slice = slice . transfer
9899 slice . null? . should == true
You can’t perform that action at this time.
0 commit comments