@@ -72,7 +72,7 @@ Describe vital
72
72
End
73
73
74
74
It remove and add vital modules
75
- let V = vital#of( g:testplugin_name)
75
+ let V = vital#{ g:testplugin_name}#new( )
76
76
Assert True(V.exists('Web.JSON'))
77
77
call vitalizer#vitalize(g:testplugin_name, g:testplugin_root, ['-Web.JSON'], '')
78
78
let V.unload()
@@ -83,7 +83,7 @@ Describe vital
83
83
End
84
84
85
85
It cannot remove dependencies modules
86
- let V = vital#of( g:testplugin_name)
86
+ let V = vital#{ g:testplugin_name}#new( )
87
87
Assert True(V.exists('Cyclic2'))
88
88
call vitalizer#vitalize(g:testplugin_name, g:testplugin_root, ['-Cyclic2'], '')
89
89
let V.unload()
@@ -92,7 +92,7 @@ Describe vital
92
92
93
93
It cannot remove modules which required from other installing modules
94
94
" Data.LazyList depends Data.List
95
- let V = vital#of( g:testplugin_name)
95
+ let V = vital#{ g:testplugin_name}#new( )
96
96
Assert True(V.exists('Data.List'))
97
97
call vitalizer#vitalize(g:testplugin_name, g:testplugin_root, ['-Data.List'], '')
98
98
let V.unload()
@@ -101,7 +101,7 @@ Describe vital
101
101
102
102
It can remove modules which required from other dependencies modules
103
103
" Cyclic2 depends Cyclic1, but Cyclic2 is not specified by :Vitalize
104
- let V = vital#of( g:testplugin_name)
104
+ let V = vital#{ g:testplugin_name}#new( )
105
105
Assert True(V.exists('Cyclic1'))
106
106
call vitalizer#vitalize(g:testplugin_name, g:testplugin_root, ['-Cyclic1'], '')
107
107
let V.unload()
@@ -110,53 +110,6 @@ Describe vital
110
110
End
111
111
End
112
112
113
- Describe vital#of()
114
- It creates a vital object
115
- let V = vital#of(g:testplugin_name)
116
- Assert Equals(type(V), type({}))
117
- Assert HasKey(V, 'import')
118
- End
119
-
120
- Context {plugin-name} is vital
121
- Before all
122
- let V = vital#vital#new()
123
- End
124
-
125
- It creates a vital object which supports available modules
126
- Assert NotEmpty(V.import('Data.List'))
127
- Assert NotEmpty(V.import('Selfmodule'))
128
- Assert NotEmpty(V.import('Cyclic1'))
129
- Assert Equals(V.load('Data.List'), V)
130
- Assert Equals(V.load('Selfmodule'), V)
131
- Assert Equals(V.load('Cyclic1'), V)
132
- Assert True(V.exists('Data.List'))
133
- Assert True(V.exists('Selfmodule'))
134
- Assert True(V.exists('Cyclic1'))
135
- Assert NotEmpty(V.search('Data.List'))
136
- Assert NotEmpty(V.search('Selfmodule'))
137
- Assert NotEmpty(V.search('Cyclic1'))
138
- End
139
- End
140
-
141
- Context wildignore handling
142
- Before all
143
- set wildignore+=*.vim,*.vital
144
- call vital#{g:testplugin_name}#new().unload()
145
- End
146
-
147
- After all
148
- set wildignore-=*.vim,*.vital
149
- End
150
-
151
- It handles &wildignore
152
- let V = vital#of(g:testplugin_name)
153
- Assert Equals(type(V), type({}))
154
- Assert HasKey(V, 'import')
155
- End
156
- End
157
-
158
- End
159
-
160
113
Describe vital#{plugin-name}#new()
161
114
It creates a vital object
162
115
let V = vital#{g:testplugin_name}#new()
0 commit comments