Merbalists:

I got 21 of 22 merb-book examples going, so the time comes to edit a test file 
and see the result. Now imagine my surprise when this works...

   ruby spec/requests/pages_spec.rb

...but this does not:

   cd spec/requests/
   ruby pages_spec.rb

I would provide a stack trace if there were one. There are instead a zillion 
complaints about missing routes:

1)
'Pages controller default language should be successful' FAILED
Expected a GET to 'http://example.org/' to be successful, but it returned a 500
pages_spec.rb:16:
pages_spec.rb:87:

2)
Merb::Router::GenerationError in 'Pages controller english table of contents 
should be successful'
Named route not found: toc
/home/Phlip/projects/merb/merb-book/gems/gems/merb-core-1.0.8/lib/merb-core/dispatch/router.rb:231:in
 
`url'
/home/Phlip/projects/merb/merb-book/gems/gems/merb-core-1.0.8/lib/merb-core/test/helpers/route_helper.rb:62:in
 
`url'
pages_spec.rb:23:
pages_spec.rb:87:

So the hypothesis is Merb can't find any views at all, raises no errors about 
that, and then is surprised at each missing action.

Note this is not a question how to run the tests; it is a bug report that the 
tests, like all other scripts, should not require the current working folder to 
be exactly MERB_ROOT.

I need that because my editor (inadvisedly) switches the current folder at test 
time. I will add a Dir.chdir(MERB_ROOT) to the top of the file and keep going!

-- 
   Phlip

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to