I’m sorry, I thought the error was clear. The exact message is: Failure/Error: get edit_account_activation_path(@user.activation_token) ActionController::UrlGenerationError: No route matches {:action=>"/account_activations/11291f1553b269c585e0a1b7e87fbe10/edit", :controller=>"account_activations"} # ./spec/controllers/account_activations_controller_spec.rb:11:in `block (3 levels) in <top (required)>'
Now here is the route (from “rake routes”): edit_account_activation GET /account_activations/:id/edit(.:format) account_activations#edit and the controller is expecting the activation token as “id”. > On Nov 26, 2020, at 7:51 AM, Phil Pirozhkov <pirjs...@gmail.com> wrote: > > Jack, > > What is wrong with it exactly, what is the error you're getting? > > On Thu, Nov 26, 2020 at 7:24 AM Jack Royal-Gordon <jac...@pobox.com > <mailto:jac...@pobox.com>> wrote: > Migrating from Rails 4.2 to Rails 5, so of course I got errors about > positional arguments being replaced by keyword arguments on http requests in > integration tests. I corrected all of those so that > get “/route”, param1: value, param2: value, … > will look like > get “/route”, params: {param1: value, … } > and that resolved most of them. > > But now I find I’ve got some where the source looks like > get edit_account_activation_path(@user.activation_token + 'xyzzy’) > > I checked and "edit_account_activation_path(@user.activation_token + > 'xyzzy’)” resolves to "/account_activations/lasdfhdlkjdslksdafjhkxyzzy/edit”. > > > Fortunately (or unfortunately, depending on how you feel about controller > tests vs feature tests), I don’t have many feature tests so there aren’t too > many of these. But I’m absolutely flummoxed about how to resolve this. > > -- > You received this message because you are subscribed to the Google Groups > "rspec" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rspec+unsubscr...@googlegroups.com > <mailto:rspec+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rspec/66ED4E44-E526-4B1B-9694-17A8B55676A2%40pobox.com > > <https://groups.google.com/d/msgid/rspec/66ED4E44-E526-4B1B-9694-17A8B55676A2%40pobox.com?utm_medium=email&utm_source=footer>. > > -- > You received this message because you are subscribed to the Google Groups > "rspec" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rspec+unsubscr...@googlegroups.com > <mailto:rspec+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rspec/CAAk5Ok-fhnK3cQ%3D6QSGECH%2BChMzf%3DLNVahgyv3JDL9HnihKN4A%40mail.gmail.com > > <https://groups.google.com/d/msgid/rspec/CAAk5Ok-fhnK3cQ%3D6QSGECH%2BChMzf%3DLNVahgyv3JDL9HnihKN4A%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to rspec+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/623CB1C9-8B7F-4B3B-9A5C-51FA60324CC8%40pobox.com.