test/shoulda_macros/decoding.rb in bencode-0.6.0 vs test/shoulda_macros/decoding.rb in bencode-0.7.0

- old
+ new

@@ -1,8 +1,8 @@ -class Test::Unit::TestCase - def self.should_decode(expected, encoded) +class MiniTest::Unit::TestCase + def self.should_decode(expected, encoded, opts = {}) should "decode #{encoded.inspect} into #{expected.inspect}" do - assert_equal expected, BEncode.load(encoded) + assert_equal expected, BEncode.load(encoded, opts) end end end