{"issue":{"user":{"id":195035,"login":"dnagir","url":"https://api.github.com/users/dnagir","avatar_url":"https://secure.gravatar.com/avatar/73ba2d202efab9804e1e344f2079f605?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"73ba2d202efab9804e1e344f2079f605"},"milestone":null,"title":"spec/acceptance directory is not marked as request","created_at":"2011-09-04T10:22:28Z","labels":[],"updated_at":"2011-12-21T16:12:19Z","state":"closed","id":1561001,"closed_at":"2011-12-14T20:11:15Z","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/jnicklas/capybara/issues/483","body":"I have just set up Capybara with RSpec in a new Rails 3.1 app and added a simple test to spec/acceptance.\r\n\r\nBut unfortunately I get the error:\r\n\r\n    undefined method `visit' for #<RSpec::Core::ExampleGroup::Nested_1:0x0000000337f020>\r\n\r\nIf I rename `spec/acceptance` to `spec/requests` or manually add `:type => :request`, then it works as expected.\r\n\r\nAccording to reademe:\r\n\r\n> A good place to put these specs is spec/requests, as rspec-rails will automatically tag them with :type => :request. (In fact, spec/integration and spec/acceptance will work just as well.)\r\n\r\nSo either README or the automatic tagging of acceptance directory should be fixed.","number":483,"url":"https://api.github.com/repos/jnicklas/capybara/issues/483","comments":14,"assignee":null},"comment":{"user":{"id":524783,"login":"joliss","url":"https://api.github.com/users/joliss","avatar_url":"https://secure.gravatar.com/avatar/4d6f74711436cfe252bf4fc8f3cf4971?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4d6f74711436cfe252bf4fc8f3cf4971"},"created_at":"2011-12-21T16:12:19Z","updated_at":"2011-12-21T16:12:19Z","id":3235615,"body":"> The reason we don't autodetet Rails is because if defined?(Foo) is generally considered bad practice. \r\n\r\nWell, now that you put it that way, yes, it seems like a really bad idea. :-)","url":"https://api.github.com/repos/jnicklas/capybara/issues/comments/3235615"},"action":"created"}