Specs inside subfolder of lib folder not displaying proper error messages

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

and just to add, this is not a rails app