Controller testing - it doesn't print if given some print value

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.

What does your actual spec look like?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs