Closed jiz4oh closed 1 year ago
As described in the document, "test" will be used as a default for "alternate".
Generally, it is effective. But it is invalid with :confirm A, e.g.
:confirm A
let g:rails_projections = { \ "app/controllers/*_controller_decorator.rb": { \ "command": "controller_decorator", \ "affinity": "controller", \ "test": "spec/requests/{}_controller_spec.rb", \ } \}
When I call :confirm A in a file names app/controllers/spree/admin/orders_controller_decorator.rb, it raise the error.
app/controllers/spree/admin/orders_controller_decorator.rb
But, if I set "alternate" explicitly
let g:rails_projections = { \ "app/controllers/*_controller_decorator.rb": { \ "command": "controller_decorator", \ "affinity": "controller", \ "alternate": "spec/requests/{}_controller_spec.rb", \ "test": "spec/requests/{}_controller_spec.rb", \ } \}
It's worked now.
PS: A command works nice when alternate file is present regardless if "alternate" is specified. Only :confirm A is broken
A
Hi @tpope, is this intentional or a bug?
It's one of the reasons the feature is considered experimental. Very unclear where exactly to draw the line.
As described in the document, "test" will be used as a default for "alternate".
Generally, it is effective. But it is invalid with
:confirm A
, e.g.When I call
:confirm A
in a file namesapp/controllers/spree/admin/orders_controller_decorator.rb
, it raise the error.But, if I set "alternate" explicitly
It's worked now.
PS:
A
command works nice when alternate file is present regardless if "alternate" is specified. Only:confirm A
is brokenHi @tpope, is this intentional or a bug?