{"action":"created","issue":{"url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/203","labels_url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/203/comments","events_url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/203/events","html_url":"https://github.com/zipmark/rspec_api_documentation/issues/203","id":60558072,"number":203,"title":"Specifying a parameter named ':text' throws an error","user":{"login":"brettchalupa","id":928367,"avatar_url":"https://avatars.githubusercontent.com/u/928367?v=3","gravatar_id":"","url":"https://api.github.com/users/brettchalupa","html_url":"https://github.com/brettchalupa","followers_url":"https://api.github.com/users/brettchalupa/followers","following_url":"https://api.github.com/users/brettchalupa/following{/other_user}","gists_url":"https://api.github.com/users/brettchalupa/gists{/gist_id}","starred_url":"https://api.github.com/users/brettchalupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettchalupa/subscriptions","organizations_url":"https://api.github.com/users/brettchalupa/orgs","repos_url":"https://api.github.com/users/brettchalupa/repos","events_url":"https://api.github.com/users/brettchalupa/events{/privacy}","received_events_url":"https://api.github.com/users/brettchalupa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-10T19:48:06Z","updated_at":"2015-06-03T20:32:01Z","closed_at":"2015-06-03T20:32:01Z","body":"While specifying a parameter for an example, I discovered that naming a parameter `:text`causes the following error to be thrown:\r\n\r\n```\r\nFailure/Error: do_request(\r\nCapybara::ElementNotFound:\r\n  Unable to find xpath \"/html\"\r\n```\r\n\r\nThe parameter line:\r\n\r\n``` ruby\r\nparameter :text, 'Content of the comment', required: true\r\n```\r\n\r\nIf I change the `:text` to anything, like `:tex` or `:texty`, the error does not get thrown.\r\n\r\nAny thoughts on what may be causing this or how to work around it?\r\n\r\nThe example in more detail:\r\n\r\n``` ruby\r\nresource 'Comments', document: :v2 do\r\n  post '/api/v2/comments' do\r\n    parameter :moment_id, 'ID of the moment to be commented on', required: true\r\n    parameter :text, 'Content of the comment', required: true\r\n\r\n    let(:moment) { moments(:photo) }\r\n\r\n    example 'Comment on a moment' do\r\n      expect do\r\n        do_request(\r\n          comment: {\r\n            moment_id: moment.id,\r\n            text: 'Too cute'\r\n          }\r\n        )\r\n      end.to change { Comment.count }.by(1)\r\n\r\n      expect(moment.comments).to include(Comment.where(text: 'Too cute').first)\r\n      expect(status).to be(200)\r\n    end\r\n  end\r\nend\r\n```\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/comments/108606692","html_url":"https://github.com/zipmark/rspec_api_documentation/issues/203#issuecomment-108606692","issue_url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/203","id":108606692,"user":{"login":"brettchalupa","id":928367,"avatar_url":"https://avatars.githubusercontent.com/u/928367?v=3","gravatar_id":"","url":"https://api.github.com/users/brettchalupa","html_url":"https://github.com/brettchalupa","followers_url":"https://api.github.com/users/brettchalupa/followers","following_url":"https://api.github.com/users/brettchalupa/following{/other_user}","gists_url":"https://api.github.com/users/brettchalupa/gists{/gist_id}","starred_url":"https://api.github.com/users/brettchalupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettchalupa/subscriptions","organizations_url":"https://api.github.com/users/brettchalupa/orgs","repos_url":"https://api.github.com/users/brettchalupa/repos","events_url":"https://api.github.com/users/brettchalupa/events{/privacy}","received_events_url":"https://api.github.com/users/brettchalupa/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T20:32:01Z","updated_at":"2015-06-03T20:32:01Z","body":"@oestrich thanks a bunch - I appreciate it. Will close this."}}