im new to RoR or rspec and trying to learn it.First of all i cant find tutorials for newbies, just advanced ones, becouse i want to learn RoR and at the same time learn to test. Im writing test for simple CRUD controllers, but i have no idea how to test for example if params passed to my create action, also if it was saved.
def create
@item = TextItem.new(params[:item])
if @item.save
redirect_to(:action => index )
else
render( new )
end
end