Skip to content

Commit

Permalink
Add specs for d870b7b
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jul 26, 2012
1 parent 4396e77 commit 548a870
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Here are some fun facts about the 3.0 release:

* The entire library is implemented in just 2,000 lines of code
* With over 5,000 lines of specs, the spec-to-code ratio is over 2.5:1
* The spec suite contains 669 examples and runs in under 2 seconds on a MacBook
* The spec suite contains 670 examples and runs in under 2 seconds on a MacBook
* This project has 100% C0 code coverage (the tests execute every line of
source code at least once)
* At the time of release, this library is comprehensive: you can request all
Expand Down
6 changes: 6 additions & 0 deletions spec/twitter/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@
subject.request(:get, "/path")
end.should raise_error(Twitter::Error::ClientError, "Oups")
end
it "catches MultiJson::DecodeError errors" do
subject.stub!(:connection).and_raise(MultiJson::DecodeError.new("unexpected token", [], "<!DOCTYPE html>"))
lambda do
subject.request(:get, "/path")
end.should raise_error(Twitter::Error::DecodeError, "unexpected token")
end
end

describe "#auth_header" do
Expand Down

0 comments on commit 548a870

Please sign in to comment.