Permalink
Browse files

fix some silly bugs

  • Loading branch information...
1 parent 233282b commit be258e6799e9b6d7af6997abd2fbdae292d65d3b @blaine committed Mar 31, 2010
Showing with 4 additions and 4 deletions.
  1. +3 −3 hub_publisher_must_spec.rb
  2. +1 −1 hub_publisher_should_spec.rb
@@ -70,12 +70,12 @@
# Section 7.3
it "MUST send subscribers notification via an HTTP POST request to their callback URL" do
request = get_publish_notification
- request.method.should == 'POST'
+ request.request_method.should == 'POST'
end
it "MUST send notification requests with a Content-Type of application/atom+xml" do
request = get_publish_notification
- request.headers['content-type'].should == 'application/atom+xml'
+ request.header['content-type'].should == ['application/atom+xml']
end
it "MUST include new entries as an Atom feed document in the body of the notification" do
@@ -131,7 +131,7 @@
doRequest(:params => {'hub.secret' => secret})
request = nil
- @subscriber.on_request = lambda { |req, res| request = req }
+ @subscriber.on_request = lambda { |req, res| req.body; request = req }
@hub.publish(@topic_url)
@@ -22,7 +22,7 @@
wait_for { request != nil }
request.should_not be_nil
- request.method.should == 'GET'
+ request.request_method.should == 'GET'
end
it "SHOULD include a header field X-Hub-Subscribers whose value is an integer in content fetch request" do

0 comments on commit be258e6

Please sign in to comment.