Skip to content

Commit

Permalink
Add explicit call to extend base objects rather than depending on ano…
Browse files Browse the repository at this point in the history
…ther file to make it happen.
  • Loading branch information
blatyo committed Jun 9, 2012
1 parent 9e7b7fc commit 7b1dc7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions spec/bencodr/parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
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) }
Expand Down
2 changes: 1 addition & 1 deletion spec/shared_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
shared_examples_for "BEncodr::Integer" do |obj|
subject{ obj }

describe "#bencodr" do
describe "#bencode" do
it{ should bencode(1).to("i1e") }
it{ should bencode(-1).to("i-1e") }
it{ should bencode(10_000_000_000).to("i10000000000e") }
Expand Down

0 comments on commit 7b1dc7c

Please sign in to comment.