Permalink
Browse files

made rspec 1.2.6 happy + pimped readme

  • Loading branch information...
1 parent 473e834 commit 74b5a8b054ae394960f4b4112c2549a9156fe13e @grosser committed Jun 17, 2009
Showing with 5 additions and 2 deletions.
  1. +3 −0 README.markdown
  2. +2 −2 spec/rpx_now_spec.rb
View
@@ -10,6 +10,9 @@ Solution
- Use [RPX](http://rpxnow.com) for universal and usable user login
- Use view/controller helpers for easy integration
+![Single Interface for all providers](https://rpxnow.com/images/how_diagram.png)
+![Visitors choose from providers they already have](https://rpxnow.com/images/6providers.png?2)
+
Usage
=====
- Get an API key @ [RPX](http://rpxnow.com)
@@ -127,12 +127,12 @@ def fake_response
it "raises when there is a communication error" do
RPXNow.expects(:post).returns %Q({"err":"wtf","stat":"ok"})
- lambda{RPXNow.send(:secure_json_post,'xx')}.should raise_error RPXNow::ServerError
+ lambda{RPXNow.send(:secure_json_post,'xx')}.should raise_error(RPXNow::ServerError)
end
it "raises when status is not ok" do
RPXNow.expects(:post).returns %Q({"stat":"err"})
- lambda{RPXNow.send(:secure_json_post,'xx')}.should raise_error RPXNow::ServerError
+ lambda{RPXNow.send(:secure_json_post,'xx')}.should raise_error(RPXNow::ServerError)
end
end

0 comments on commit 74b5a8b

Please sign in to comment.