spree/spree — Issue #1180: ActionController::RoutingError: No route matches {:action=>"testmail", :controller=>"spree/admin/mail_methods"}
Author: citrus
Created: 2012-02-23 00:31:27+00:00
State: open

While running integration tests on extensions I get this error and I can't figure out what's causing it.

```ruby
testmail_admin_mail_method_url(Spree::Admin::UploadIntegrationTest):
ActionController::RoutingError: No route matches {:action=>"testmail", :controller=>"spree/admin/mail_methods"}
/Users/Spencer/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:466:in `raise_routing_error'
/Users/Spencer/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:456:in `generate'
/Users/Spencer/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:495:in `generate'
/Users/Spencer/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:520:in `url_for'
/Users/Spencer/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/url_for.rb:147:in `url_for'
/Users/Spencer/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:201:in `testmail_admin_mail_method_url'
```

To recreate this error follow these steps with [spree_essentials](https://github.com/citrus/spree_essentials) as an example:

```bash
git clone git://github.com/citrus/spree_essentials.git
cd spree_essentials
bundle install
bundle exec dummier
```

Now run `rake` and all tests should pass. Comment out lines 28 through 31 in `lib/spree_essentials/test_helper.rb` and you should see the error.

Does anybody have any idea what is causing this? And what is `testmail_admin_mail_method_url` used for?

Thanks!!