Sean Cribbs wrote:
First, you shouldn't be running it in test mode, which is only for
running the RSpec and Cucumber test suites. Second, that happens
because Radiant includes an extension that only loads in test mode and
includes the default route :controller/:action/:id.
Some further poking around; the shared_layouts extension has this code
called when loaded:
# I'm sure this can be done more elegantly, but without it, RSpec
complains about routing errors
if ENV["RAILS_ENV"] == "test"
define_routes do |map|
map.connect ':controller/:action/:id'
end
end
Removing that solves my problem.
Seems there should be some way to get rspec to alter the routes only
when rspec is running so that code isn't test-tool specific. Or have
this code first see if rspec has been loaded.
James
--
Neurogami - Smart application development
http://www.neurogami.com
[email protected]
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant