describe "#index" do before do @response = request("/gists.json") end it_should_respond_with OK it_should_return :json it_reports OK it_returns :json reports OK returns :json returns_status_code OK returns_content_type :json status_code OK content_type :json should_return do content_type :json status_code OK end should_return :content_type => :json, :status_code => OK # just to be clear, you can use any status code here, # not just OK, ie, Created, Accepted, etc. end