I have this 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 seem to be returning nil. Is there a configuration that I am missing?