File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 [ "abc" ] . pack ( "A*" ) . should == "abc"
2828 end
2929
30- it "padds the output with spaces when the count exceeds the size of the String" do
30+ it "pads the output with spaces when the count exceeds the size of the String" do
3131 [ "abc" ] . pack ( "A6" ) . should == "abc "
3232 end
3333
5555 [ "abc" ] . pack ( "a*" ) . should == "abc"
5656 end
5757
58- it "padds the output with NULL bytes when the count exceeds the size of the String" do
58+ it "pads the output with NULL bytes when the count exceeds the size of the String" do
5959 [ "abc" ] . pack ( "a6" ) . should == "abc\x00 \x00 \x00 "
6060 end
6161
Original file line number Diff line number Diff line change 2626 [ "abc" ] . pack ( "Z*" ) . should == "abc\x00 "
2727 end
2828
29- it "padds the output with NULL bytes when the count exceeds the size of the String" do
29+ it "pads the output with NULL bytes when the count exceeds the size of the String" do
3030 [ "abc" ] . pack ( "Z6" ) . should == "abc\x00 \x00 \x00 "
3131 end
3232
Original file line number Diff line number Diff line change 106106 ScratchPad . clear
107107 end
108108
109- it "calls #to_path to covert the argument to a String before calling #to_str" do
109+ it "calls #to_path to convert the argument to a String before calling #to_str" do
110110 obj = mock ( "open to_path" )
111111 obj . should_receive ( :to_path ) . at_least ( 1 ) . times . and_return ( @name )
112112 obj . should_not_receive ( :to_str )
Original file line number Diff line number Diff line change 2626 "a" . unpack ( "C" , offset : 1 ) . should == [ nil ]
2727 end
2828
29- it "raises an ArgumentError when the offset is larget than the string" do
29+ it "raises an ArgumentError when the offset is larger than the string" do
3030 -> { "a" . unpack ( "C" , offset : 2 ) } . should raise_error ( ArgumentError , "offset outside of string" )
3131 end
3232end
You can’t perform that action at this time.
0 commit comments