Ich habe post '/foo/bar', to: 'api/v1/things#bar'
in meinem routes.rb
.Rspec nicht meine Route
Lauf rails routes
kehrt
foo_bar POST /foo/bar(.:format) api/v1/things#bar
Ich versuche es mit post '/foo/bar'
zu testen, aber ich
No route matches {:action=>"/foo/bar", :controller=>"api/v1/things"}
Ich weiß, dass das Problem etwas albern ist, aber ich bin nicht in der Lage, es zu sehen . Irgendwelche Ideen?
Welche Art von Test ist das? Controller-Test? –
Ja, ein Contoroller-Test. – alexandernst