{"action":"created","issue":{"url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/280","repository_url":"https://api.github.com/repos/zipmark/rspec_api_documentation","labels_url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/280/comments","events_url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/280/events","html_url":"https://github.com/zipmark/rspec_api_documentation/issues/280","id":150029411,"number":280,"title":"empty doc file","user":{"login":"tokhi","id":359381,"avatar_url":"https://avatars.githubusercontent.com/u/359381?v=3","gravatar_id":"","url":"https://api.github.com/users/tokhi","html_url":"https://github.com/tokhi","followers_url":"https://api.github.com/users/tokhi/followers","following_url":"https://api.github.com/users/tokhi/following{/other_user}","gists_url":"https://api.github.com/users/tokhi/gists{/gist_id}","starred_url":"https://api.github.com/users/tokhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokhi/subscriptions","organizations_url":"https://api.github.com/users/tokhi/orgs","repos_url":"https://api.github.com/users/tokhi/repos","events_url":"https://api.github.com/users/tokhi/events{/privacy}","received_events_url":"https://api.github.com/users/tokhi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-21T10:15:13Z","updated_at":"2016-04-21T13:49:55Z","closed_at":"2016-04-21T13:17:54Z","body":"I have all my rspec tests in `spec/requests/` directory and its looking something like this:\r\n```\r\nrequire 'rails_helper'\r\nrequire 'rspec_api_documentation/dsl'\r\n\r\nRSpec.describe \"V1::Verticals\", :type => :request do\r\n\r\n  let(:headers) { {} }\r\n  context 'Create new vertical context' do\r\n    let(:params){ attributes_for(:vertical) }\r\n    subject { post verticals_path, {:vertical=>params}, headers }\r\n    it \"creates a new vertical\" do\r\n      subject\r\n      expect(response).to have_http_status(201)\r\n    end\r\n  end\r\n```\r\nWhen I try to generate rspec docs I get an empty file\r\n```\r\n{\r\n  \"resources\": []\r\n}\r\n```\r\nI even made my own `docs` rake task to look in the `requests` directory.\r\nThe generate task only works If I include the `resource` header:\r\n```\r\nresource \"verticals\" do\r\n  get \"/v1/verticals\" do\r\n    example \"Listing verticals\" do\r\n      do_request\r\n      status.should == 401\r\n    end\r\n  end\r\nend\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/comments/212928700","html_url":"https://github.com/zipmark/rspec_api_documentation/issues/280#issuecomment-212928700","issue_url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/280","id":212928700,"user":{"login":"tokhi","id":359381,"avatar_url":"https://avatars.githubusercontent.com/u/359381?v=3","gravatar_id":"","url":"https://api.github.com/users/tokhi","html_url":"https://github.com/tokhi","followers_url":"https://api.github.com/users/tokhi/followers","following_url":"https://api.github.com/users/tokhi/following{/other_user}","gists_url":"https://api.github.com/users/tokhi/gists{/gist_id}","starred_url":"https://api.github.com/users/tokhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokhi/subscriptions","organizations_url":"https://api.github.com/users/tokhi/orgs","repos_url":"https://api.github.com/users/tokhi/repos","events_url":"https://api.github.com/users/tokhi/events{/privacy}","received_events_url":"https://api.github.com/users/tokhi/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T13:49:55Z","updated_at":"2016-04-21T13:49:55Z","body":"Wrapping everything inside a resource will bring more headaches for the rspec tests of type `request`, I am not sure how difficult is to find a solution for this dependency.\r\n```\r\nblock in <top (required)>': undefined method `resource' for RSpec::ExampleGroups::V1Verticals:Class (NoMethodError)\r\n```"}}