spec/formatting/text/array_spec.rb in ronin-support-0.1.0.pre2 vs spec/formatting/text/array_spec.rb in ronin-support-0.1.0.pre3
- old
+ new
@@ -27,11 +27,11 @@
it "should provide Array#hex_integers" do
should respond_to(:hex_integers)
end
- describe "bytes" do
+ describe "#bytes" do
it "should convert an Array of bytes to an Array of bytes" do
byte_array.bytes.should == byte_array
end
it "should convert an Array of chars to an Array of bytes" do
@@ -41,11 +41,11 @@
it "should safely handle mixed byte/char/string Arrays" do
mixed_array.bytes.should == byte_array
end
end
- describe "chars" do
+ describe "#chars" do
it "should convert an Array of bytes to an Array of chars" do
byte_array.chars.should == char_array
end
it "should safely convert an Array of chars to an Array of chars" do
@@ -55,11 +55,11 @@
it "should safely handle mixed byte/char/string Arrays" do
mixed_array.chars.should == char_array
end
end
- describe "char_string" do
+ describe "#char_string" do
it "should convert an Array of bytes to a String" do
byte_array.char_string.should == string
end
it "should convert an Array of chars to a String" do
@@ -69,11 +69,11 @@
it "should safely handle mixed byte/char/string Arrays" do
mixed_array.char_string.should == string
end
end
- describe "hex_chars" do
+ describe "#hex_chars" do
let(:hex_chars) { ['\x41', '\x41', '\x20'] }
it "should convert an Array of bytes into hexadecimal chars" do
byte_array.hex_chars.should == hex_chars
end
@@ -85,10 +85,10 @@
it "should safely handle mixed byte/char/string Arrays" do
mixed_array.hex_chars.should == hex_chars
end
end
- describe "hex_integers" do
+ describe "#hex_integers" do
let(:hex_integers) { ['0x41', '0x41', '0x20'] }
it "should convert an Array of bytes into hexadecimal integers" do
byte_array.hex_integers.should == hex_integers
end