0
I am with the following doubt, I do my tests using Ministest, but I have a problem when testing the locals of a render... I do not know how to test, example:
Controller:
def salvou
render('cadastro/salvou', locals: {id: params[:id]})
end
in this case my saved is a js file.
Testing:
it "Redireciona para o salvou" do
[...]
assert_template 'cadastro/salvou'
end
and the locals, how I test?
Grateful!