Seem to just have problem after problem trying to get my tests to work. While looking at the site, all my links work fine, the title's are correct, and the pages exist. However this was not always the case. When changing the title tag from "Ruby on Rails Tutorial Sample App | <%= @title %>" to <%= title %> I forgot to remove the @. This made the title method I had just defined absolutely useless, as I was just taking the site's @title variable as the title anyway. Because of this, 2/3 of my tests were failing (One tests that the title of the page is "Ruby on Rails Tutorial Sample App | @title", the other tests that the page exists, and the third tests to make sure that the pages exist at the proper URL). After fixing that test, for whatever reason the Terminal is now giving me an error "undefined local variable or method 'render views'".
I am thoroughly confused as to why I'm getting this error, especially as to why it would happen after changing the title's reference from just an instance variable to a method which references an instance variable. Also, I've reread the last couple chapters a few times each and for the life of me can't find a step I may have missed.
The error is pointing to this exact piece of code, prolly shoulda put it in before an edit, but here it is:
require 'spec_helper'
describe PagesController do
render_views
PagesController tests make sure that the pages exist, and that they have the appropriate titles, it uses the have_selector and be_success methods
Second Edit: Although it may be considered giving up, I was able to utilize github for the first time. Just a bit of a setback, I think I may have accidentally deleted a directory I wasn't supposed to earlier, which was causing this problem in the first problem. I just hope to work through it without the problems this time.