I am working on Rspec2.5.0 with rails 3.0.6 . And I was successfully
able to complete model testing. But when I come to controller part I
wanted to see whether some variable getting generated & I have given
My Controller
def some_action
@users=User.create(params[:user])
p @users
end
end
Here in model if give ‘p object_name’ it prints well.But I am not able
to see the results when I do bin/rspec spec/controllers/
user_controller_spec.rb
Any ideas will be highly appreciable.