http://github.com/ianwhite/pickle/issues/closed/#issue/1
This now seems to resolve to a path, but gives a different
error:
Missing template site/show.erb in view path app/views
(ActionView::MissingTemplate) (eval):2:in visit'
./features/step_definitions/webrat_steps.rb:16:in/^(?:|I )go
to (.+)$/' features/authentication/admin_login.feature:22:in
And I go to the site page'
new_site GET /site/install(.:format) {:action=>"new", :controller=>"site"}
edit_site GET /site/configure(.:format) {:action=>"edit", :controller=>"site"}
site GET /site(.:format) {:action=>"show", :controller=>"site"}
PUT /site(.:format) {:action=>"update", :controller=>"site"}
POST /site(.:format) {:action=>"create", :controller=>"site"}
map.resource :site,
:controller => 'site', :only => [:new, :create, :update, :show, :edit],
:path_names => {:new => 'install', :edit => 'configure'}
And the files are certainly there and working, it's for some
reason not recognising .html.erb from .erb within pickle_path or
pickle_path isn't providing visit with the right kind of url, or
something.
First thing to do: reproduce this in a fresh rails app without
the other clutter present where the issue was observed. I work
around this (and the previous issue) by having this as my second
path in the case statement:
when /^the site page$/
site_path