I have it in my users_spec.rb
scenario "Go to contact page" do visit "/contact" current_path.should == contact_path end
After running rspec, I get
Failure/Error: current_path.should == contact_path expected: "/contact" got: nil (using ==)
For some reason, current_path seems to return nil. Is there some kind of configuration that I am missing?
source share