Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: bdudney
Ryan, I'm a new rails dev and your screencasts are the best resource! Thanks for making them easy to get and search!
While following this screencast I was getting:
undefined method `visit' for #...
For my test. Turns out the current versions of Rspec and Capabara have moved the auto include of Capybara's DSL to only be included in the 'features' space of the spec tests.
You can either do the Capybara 'visit' (and other methods) into only the features tests or you can add Capybara's DSL to the request scope.
I chose to add the DSL to request scope so I could follow along.
RSpec.configure do |config|
config.include Capybara::DSL, :type => :request
Hope this helps other noobs!