-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc.rails
72 lines (71 loc) · 1.93 KB
/
vimrc.rails
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
let g:rails_projections = {
\ "config/projections.json": {
\ "command": "projections"
\ },
\ "app/models/*.rb": {
\ "test": [
\ "spec/component/models/%s_spec.rb",
\ "spec/unit/%s_spec.rb"
\ ]
\ },
\ "app/decorators/*.rb": {
\ "test": [
\ "spec/component/decorators/%s_spec.rb",
\ "spec/unit/%s_spec.rb"
\ ]
\ },
\ "spec/component/models/*_spec.rb": {
\ "alternate": "app/models/%s.rb",
\ "related": "db/schema.rb#%p"
\ },
\ "spec/unit/*_spec.rb": {
\ "alternate": [
\ "app/models/%s.rb",
\ "app/services/%s.rb",
\ "app/decorators/%s.rb"
\ ],
\ "related": "db/schema.rb#%p"
\ },
\ "app/services/*.rb": {
\ "command": "service",
\ "affinity": "model",
\ "test": [
\ "spec/services/%s_spec.rb",
\ "spec/component/services/%s_spec.rb"
\ ],
\ "related": "app/models/%s.rb",
\ "template": "class %S\n\n def run\n end\nend"
\ }}
let g:rails_gem_projections = {
\ "factory_girl_rails": {
\ "spec/factories.rb": {"command": "factory"},
\ "spec/factories/*_factory.rb": {
\ "command": "factory",
\ "affinity": "model",
\ "alternate": "app/models/%s.rb",
\ "related": "db/schema.rb#%p",
\ "test": [
\ "spec/models/%s_spec.rb",
\ "spec/component/models/%s_spec.rb"
\ ],
\ "template": "FactoryGirl.define do\n factory :%s do\n end\nend",
\ "keywords": "factory sequence"
\ },
\ "spec/factories/*.rb": {
\ "command": "factory",
\ "affinity": "collection",
\ "alternate": "app/models/%o.rb",
\ "related": "db/schema.rb#%s",
\ "test": [
\ "spec/component/models/%o_spec.rb",
\ "spec/models/%o_spec.rb"
\ ],
\ "template": "FactoryGirl.define do\n factory :%o do\n end\nend",
\ "keywords": "factory sequence"
\ },
\ },
\ "cucumber-rails": {
\ "features/*.feature": {"command": "feature"},
\ "features/step_definitions/*_steps.rb": {"command": "steps"},
\ "features/support/*.rb": {"command": "support"}
\ }}