[rspec-users] specs inside subfolder of lib folder not displaying proper error messages

Manish Manchanda manchanda.manish at gmail.com
Wed Sep 15 10:57:22 EDT 2010


hi
im facing this issue in which if i place a failing spec inside a subfolder
of my lib folder then along with the error message the file name and the
line number is not shown.
output as below:

'Test one' FAILED
expected: 2,
     got: 1 (using ==)


but if i move the spec directly under lib or any other folder then i see the
file name and line number with error message as below
'Test one' FAILED
expected: 2,
     got: 1 (using ==)
./spec/SFA/foo_spec.rb:6:

my project structure is somewhat like below
project
project/app
project/app/models
project/lib
project/lib/extension
project/spec
project/spec/app
project/spec/lib
project/spec/lib/extension

so if i place the spec file under 'project/spec/lib/extension' or any folder
in that level then i do not see the file name and line number along with
error msg.

please advice

regards,
manish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100915/d3733d1d/attachment-0001.html>


More information about the rspec-users mailing list