Hey i am new to testing on rails and i have the following test written
describe 'GET search' do
it 'finds a named account directly' do
get :search, name: 'test'
I have been getting the following error
SystemAccountsController GET search finds a named account directly
Expected response to be a <:redirect>, but was <200>
# ./spec/controllers/account_controller_spec.rb:21:in `block (3
levels) in <top (required)>'
I however get a response status of 200. I am not sure what i am doing
wrong cause all my links however work correctly. Is there a way to debug
this or find where the actual response is headed to ?