My vim-rails now knows that request specs are possible alternate files to controllers. And who of you cares?
Conversation
Notices
-
FlowFX (flowfx@chaos.social)'s status on Tuesday, 12-Feb-2019 10:00:47 CET FlowFX -
FlowFX (flowfx@chaos.social)'s status on Tuesday, 12-Feb-2019 14:47:43 CET FlowFX @tachyons Yes. It looks like this:
let g:rails_projections = {
\ "app/controllers/*_controller.rb": {
\ "test": [
\ "spec/controllers/{}_controller_spec.rb",
\ "spec/requests/{}_spec.rb"
\ ],
\ },
\ "spec/requests/*_spec.rb": {
\ "alternate": [
\ "app/controllers/{}_controller.rb",
\ ],
\ }}And because 2 people starred my toot, I will put that into my blog, too.
-
FlowFX (flowfx@chaos.social)'s status on Tuesday, 12-Feb-2019 15:02:50 CET FlowFX @tachyons I'm slowly figuring out how to use the Vim :help command myself. 😂
-