Friday, November 15, 2013

Faced issue with LDAP while testing with Rspec in RoR application

Issue was with tmpdir.

Error:

Cannot guess tmpdir from the environment.  Please specify it.

How to solve this?

Well,

Just add a new variable to your bashrc (environment file in Ubuntu)

e.g.

  export TMPDIR=/tmp


And that's it. This would clear up.

Dont forget to source your bashrc file before running the tests.

For sourcing you do:

source ~/.bashrc

Enjoy!

No comments:

Post a Comment