spec/shared_examples.rb in bencodr-2.0.1 vs spec/shared_examples.rb in bencodr-3.0.0
- old
+ new
@@ -1,9 +1,12 @@
+# encoding: UTF-8
+
shared_examples_for "BEncodr::String" do |obj|
subject{ obj }
describe "#bencode" do
it{ should bencode("string").to("6:string") }
+ it{ should bencode("£").to("2:£") }
it{ should bencode("").to("0:") }
it{ should bencode(:symbol).to("6:symbol") }
it{ should bencode(URI.parse("http://github.com/blatyo/bencodr")).to("32:http://github.com/blatyo/bencodr") }
it{ should bencode(URI.parse("https://github.com/blatyo/bencodr")).to("33:https://github.com/blatyo/bencodr") }
it{ should bencode(URI.parse("ftp://github.com/blatyo/bencodr")).to("31:ftp://github.com/blatyo/bencodr") }
\ No newline at end of file