Skip to content

Commit

Permalink
Move rails_helper.rb from :Espec to :Eintegrationtest
Browse files Browse the repository at this point in the history
References #382.
  • Loading branch information
tpope committed Jan 18, 2015
1 parent fdde033 commit c65766e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/rails.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2430,6 +2430,7 @@ function! s:app_commands() dict abort
\ ['turnip', 'spec/acceptance/*.feature', "Feature: %h"],
\ ['test', 'test/test_helper.rb', ""],
\ ['cucumber', 'features/support/env.rb', ""],
\ ['spec', 'spec/rails_helper.rb', ""]],
\ ['spec', 'spec/spec_helper.rb', ""]],
\ 'rails#app().has(v:val[0])'),
\ '{"pattern": v:val[1], "template": v:val[2]}')
Expand Down Expand Up @@ -2978,7 +2979,6 @@ function! s:specEdit(cmd,...) abort
let describe = s:sub(s:sub(rails#camelize(a:0 ? a:1 : ''), '^[^:]*::', ''), '!.*', '')
return rails#buffer().open_command(a:cmd, a:0 ? a:1 : '', 'spec', [
\ {'pattern': 'spec/*_spec.rb', 'template': "require 'spec_helper'\n\ndescribe ".describe." do\nend"},
\ {'pattern': 'spec/rails_helper.rb'},
\ {'pattern': 'spec/spec_helper.rb'}])
endfunction

Expand Down

0 comments on commit c65766e

Please sign in to comment.