0
@@ -17,22 +17,22 @@ describe MessageChannel do
0
@writer_pipe.close unless @writer_pipe.closed?
0
- it "
should be able to read a single written array message" do
0
+ it "
can read a single written array message" do
0
@reader.read.should == ["hello"]
0
- it "
should be able to handle array messages that contain spaces" do
0
+ it "
can handle array messages that contain spaces" do
0
@writer.write("hello world", "! ")
0
@reader.read.should == ["hello world", "! "]
0
- it "
should be able to handle array messages that have only a single empty string" do
0
+ it "
can handle array messages that have only a single empty string" do
0
@reader.read.should == [""]
0
- it "
should be able to handle array messages with empty arguments" do
0
+ it "
can handle array messages with empty arguments" do
0
@writer.write("hello", "", "world")
0
@reader.read.should == ["hello", "", "world"]
0
@@ -43,27 +43,27 @@ describe MessageChannel do
0
@reader.read.should == ["", "foo"]
0
- it "
should properly detect end-of-file when reading an array message" do
0
+ it "
properly detects end-of-file when reading an array message" do
0
@reader.read.should be_nil
0
- it "
should be able to read a single written scalar message" do
0
+ it "
can read a single written scalar message" do
0
@writer.write_scalar("hello world")
0
@reader.read_scalar.should == "hello world"
0
- it "
should be able to handle empty scalar messages" do
0
+ it "
can handle empty scalar messages" do
0
@writer.write_scalar("")
0
@reader.read_scalar.should == ""
0
- it "
should properly detect end-of-file when reading a scalar message" do
0
+ it "
properly detects end-of-file when reading a scalar message" do
0
@reader.read_scalar.should be_nil
0
- it "
should raise SecurityError when a received scalar message's size is larger than a specified maximum" do
0
+ it "
raises SecurityError when a received scalar message's size is larger than a specified maximum" do
0
@writer.write_scalar(" " * 100)
0
lambda { @reader.read_scalar(99) }.should raise_error(SecurityError)
0
@@ -75,7 +75,7 @@ describe MessageChannel do
0
Process.waitpid(@pid) rescue nil
0
- it "both processes
should be able to read and write a single array message" do
0
+ it "both processes
can read and write a single array message" do
0
@channel.write("#{x}!")
0
@@ -84,7 +84,7 @@ describe MessageChannel do
0
@channel.read.should == ["hello!"]
0
- it "
should be able to handle scalar messages with arbitrary binary data" do
0
+ it "
can handle scalar messages with arbitrary binary data" do
0
garbage_files = ["garbage1.dat", "garbage2.dat", "garbage3.dat"]
0
garbage_files.each do |name|
0
@@ -99,7 +99,7 @@ describe MessageChannel do
0
- it "s
hould support IO object (file descriptor) passing" do
0
+ it "s
upports IO object (file descriptor) passing" do
0
writer = @channel.recv_io
0
writer.write("it works")
0
@@ -112,7 +112,7 @@ describe MessageChannel do
0
- it "s
hould support large amounts of data" do
0
+ it "s
upports large amounts of data" do
0
@@ -125,7 +125,7 @@ describe MessageChannel do
0
- it "
should have stream properties" do
0
+ it "
has stream properties" do
0
garbage = File.read("stub/garbage1.dat")
0
@channel.write("hello", "world")
Comments
No one has commented yet.