spec/bencodr/parser_spec.rb in bencodr-3.0.1 vs spec/bencodr/parser_spec.rb in bencodr-3.0.2
- old
+ new
@@ -50,9 +50,13 @@
it{ should generate_parse_error(BEncodr::BEncodeError).for(:dictionary).with("d1:ae") }
end
end
describe String do
+ before :all do
+ BEncodr::Ext.include!
+ end
+
describe "#bdecode" do
it{ "6:string".should bdecode_to("string") }
it{ "i-1e".should bdecode_to(-1) }
it{ "le".should bdecode_to([]) }
it{ "de".should bdecode_to({}) }
\ No newline at end of file