So I\'m new to TDD & I\'m throwing some Rspec errors here on my tests...Basically after running bundle exec rspec spec, I get an undefined method \'visit\'
undefined method \'visit\'
The problem is here:
./spec/requests/user_pages_spec.rb
You put the Capybara integration tests in requests folder. That's why the method visit won't work.
requests
visit
To fix, just move all the tests from spec/requests to spec/features.
spec/requests
spec/features