spec/extensions/string_spec.rb in ronin-0.2.3 vs spec/extensions/string_spec.rb in ronin-0.2.4
- old
+ new
@@ -94,6 +94,10 @@
end
it "should dump strings containing non-printable characters" do
"hello\x90\x05\xef".dump.should == '"hello\x90\x05\xef"'
end
+
+ it "should dump the string when calling the inspect method" do
+ "hello\x90\x05\xef".inspect.should == '"hello\x90\x05\xef"'
+ end
end