specify_cli 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/.rspec +1 -0
  4. data/Gemfile +17 -0
  5. data/Gemfile.lock +117 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.rdoc +43 -0
  8. data/Rakefile +15 -0
  9. data/bin/specify_cli +248 -0
  10. data/lib/specify.rb +45 -0
  11. data/lib/specify/branch_parser.rb +85 -0
  12. data/lib/specify/cli.rb +11 -0
  13. data/lib/specify/cli/database_setup.rb +46 -0
  14. data/lib/specify/cli/stubs.rb +63 -0
  15. data/lib/specify/cli/viewset.rb +21 -0
  16. data/lib/specify/configuration.rb +12 -0
  17. data/lib/specify/configuration/config.rb +120 -0
  18. data/lib/specify/configuration/db_config.rb +162 -0
  19. data/lib/specify/configuration/host_config.rb +37 -0
  20. data/lib/specify/database.rb +140 -0
  21. data/lib/specify/models.rb +43 -0
  22. data/lib/specify/models/accession.rb +33 -0
  23. data/lib/specify/models/agent.rb +138 -0
  24. data/lib/specify/models/app_resource_data.rb +32 -0
  25. data/lib/specify/models/app_resource_dir.rb +43 -0
  26. data/lib/specify/models/auto_numbering_scheme.rb +94 -0
  27. data/lib/specify/models/collecting_event.rb +38 -0
  28. data/lib/specify/models/collection.rb +67 -0
  29. data/lib/specify/models/collection_object.rb +127 -0
  30. data/lib/specify/models/createable.rb +21 -0
  31. data/lib/specify/models/determination.rb +63 -0
  32. data/lib/specify/models/discipline.rb +61 -0
  33. data/lib/specify/models/division.rb +26 -0
  34. data/lib/specify/models/geography.rb +5 -0
  35. data/lib/specify/models/geography/administrative_division.rb +32 -0
  36. data/lib/specify/models/geography/geographic_name.rb +66 -0
  37. data/lib/specify/models/geography/geography.rb +23 -0
  38. data/lib/specify/models/institution.rb +13 -0
  39. data/lib/specify/models/locality.rb +50 -0
  40. data/lib/specify/models/preparation.rb +53 -0
  41. data/lib/specify/models/preparation_type.rb +30 -0
  42. data/lib/specify/models/record_set.rb +55 -0
  43. data/lib/specify/models/record_set_item.rb +29 -0
  44. data/lib/specify/models/taxonomy.rb +6 -0
  45. data/lib/specify/models/taxonomy/common_name.rb +14 -0
  46. data/lib/specify/models/taxonomy/rank.rb +31 -0
  47. data/lib/specify/models/taxonomy/taxon.rb +54 -0
  48. data/lib/specify/models/taxonomy/taxonomy.rb +21 -0
  49. data/lib/specify/models/tree_queryable.rb +55 -0
  50. data/lib/specify/models/updateable.rb +20 -0
  51. data/lib/specify/models/user.rb +104 -0
  52. data/lib/specify/models/view_set_object.rb +32 -0
  53. data/lib/specify/number_format.rb +60 -0
  54. data/lib/specify/services.rb +18 -0
  55. data/lib/specify/services/service.rb +51 -0
  56. data/lib/specify/services/stub_generator.rb +291 -0
  57. data/lib/specify/services/view_loader.rb +177 -0
  58. data/lib/specify/session.rb +77 -0
  59. data/lib/specify/user_type.rb +61 -0
  60. data/lib/specify/version.rb +19 -0
  61. data/man/specify_cli-database.1 +60 -0
  62. data/man/specify_cli-database.1.html +137 -0
  63. data/man/specify_cli-database.1.ronn +53 -0
  64. data/man/specify_cli-repository.1 +55 -0
  65. data/man/specify_cli-repository.1.html +128 -0
  66. data/man/specify_cli-repository.1.ronn +42 -0
  67. data/man/specify_cli-stubs.1 +177 -0
  68. data/man/specify_cli-stubs.1.html +239 -0
  69. data/man/specify_cli-stubs.1.ronn +147 -0
  70. data/man/specify_cli-viewset.1 +92 -0
  71. data/man/specify_cli-viewset.1.html +154 -0
  72. data/man/specify_cli-viewset.1.ronn +72 -0
  73. data/man/specify_cli.1 +213 -0
  74. data/man/specify_cli.1.html +252 -0
  75. data/man/specify_cli.1.ronn +157 -0
  76. data/spec/branch_parser_spec.rb +94 -0
  77. data/spec/cli/stubs_spec.rb +44 -0
  78. data/spec/configuration/config_spec.rb +269 -0
  79. data/spec/configuration/db_config_spec.rb +299 -0
  80. data/spec/configuration/host_config_spec.rb +64 -0
  81. data/spec/database_spec.rb +83 -0
  82. data/spec/examples.txt +217 -0
  83. data/spec/helpers.rb +15 -0
  84. data/spec/models/app_resource_data_spec.rb +38 -0
  85. data/spec/models/app_resource_dir_spec.rb +8 -0
  86. data/spec/models/auto_numbering_scheme_spec.rb +78 -0
  87. data/spec/models/collection_object_spec.rb +92 -0
  88. data/spec/models/collection_spec.rb +32 -0
  89. data/spec/models/discipline_spec.rb +31 -0
  90. data/spec/models/record_set_spec.rb +18 -0
  91. data/spec/models/user_spec.rb +182 -0
  92. data/spec/models/view_set_object_spec.rb +70 -0
  93. data/spec/number_format_spec.rb +43 -0
  94. data/spec/services/stub_generator_spec.rb +635 -0
  95. data/spec/services/view_loader_spec.rb +436 -0
  96. data/spec/session_spec.rb +105 -0
  97. data/spec/spec_helper.rb +116 -0
  98. data/spec/support/db.yml +12 -0
  99. data/spec/support/stub.yaml +17 -0
  100. data/spec/support/stub_locality.yaml +19 -0
  101. data/spec/support/viewsets/paleo.views.xml +30 -0
  102. data/spec/support/viewsets/paleo.xml +30 -0
  103. data/spec/user_type_spec.rb +79 -0
  104. data/specify_cli.gemspec +27 -0
  105. data/specify_cli.rdoc +1 -0
  106. metadata +246 -0
@@ -0,0 +1,299 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Tests for the
4
+ module Specify
5
+ module Configuration
6
+ RSpec.describe DBConfig do
7
+ let :file do
8
+ Pathname.new(Dir.pwd).join('spec', 'support', 'db.yml')
9
+ end
10
+
11
+ let :known_config do
12
+ described_class.new('localhost', 'SPSPEC',
13
+ Pathname.new(Dir.pwd).join('spec',
14
+ 'support',
15
+ 'db.yml'))
16
+ end
17
+
18
+ let :unknown_config do
19
+ described_class.new('localhost', 'SPECBase',
20
+ Pathname.new(Dir.pwd).join('spec',
21
+ 'support',
22
+ 'db.yml'))
23
+ end
24
+
25
+ describe '#connection' do
26
+ context 'when the database is known' do
27
+ subject { known_config.connection }
28
+
29
+ it do
30
+ is_expected.to be_a(Hash)
31
+ .and include host: 'localhost',
32
+ port: 3306,
33
+ user: 'specmaster',
34
+ password: 'masterpass'
35
+ end
36
+ end
37
+
38
+ context 'when the database is not known' do
39
+ subject(:connection) { unknown_config.connection }
40
+
41
+ let(:error) { 'SPECBase on localhost not configured' }
42
+
43
+ it do
44
+ expect { connection }.to raise_error error
45
+ end
46
+ end
47
+ end
48
+
49
+ describe '#db_user' do
50
+ context 'when the database is known' do
51
+ subject { known_config.db_user }
52
+
53
+ it do
54
+ is_expected
55
+ .to be_a(Hash)
56
+ .and include name: 'specmaster', password: 'masterpass'
57
+ end
58
+ end
59
+
60
+ context 'when the database is not kown' do
61
+ subject { unknown_config.db_user }
62
+
63
+ it do
64
+ is_expected
65
+ .to be_a(Hash)
66
+ .and include name: nil, password: nil
67
+ end
68
+ end
69
+ end
70
+
71
+ describe '#host?' do
72
+ context 'when the host is known' do
73
+ subject { known_config.host? }
74
+
75
+ it { is_expected.to be_truthy }
76
+ end
77
+
78
+ context 'when the host is not known' do
79
+ subject { described_class.new('cloudhost', 'SPSPEC', file).host? }
80
+
81
+ it { is_expected.to be_falsey }
82
+ end
83
+ end
84
+
85
+ describe '#known?' do
86
+ context 'when the database is known' do
87
+ subject { known_config.known? }
88
+
89
+ it { is_expected.to be_truthy }
90
+ end
91
+
92
+ context 'when the database is not known' do
93
+ subject { unknown_config.known? }
94
+
95
+ it { is_expected.to be_falsey }
96
+ end
97
+ end
98
+
99
+ describe '#params' do
100
+ context 'when the database is known' do
101
+ subject { known_config.params }
102
+
103
+ it do
104
+ is_expected
105
+ .to include db_user: a_hash_including(name: 'specmaster',
106
+ password: 'masterpass'),
107
+ sp_user: 'specuser'
108
+ end
109
+ end
110
+
111
+ context 'when the database is not known' do
112
+ subject { unknown_config.params }
113
+
114
+ it { is_expected.to be_nil }
115
+ end
116
+ end
117
+
118
+ describe '#port=(number)' do
119
+ context 'when passed a valid port number as string' do
120
+ subject(:set_port) { known_config.port = '4000' }
121
+
122
+ it do
123
+ expect { set_port }
124
+ .to change(known_config, :port).from(3306).to 4000
125
+ end
126
+ end
127
+
128
+ context 'when passed a valid port number as integer' do
129
+ subject(:set_port) { known_config.port = 4000 }
130
+
131
+ it do
132
+ expect { set_port }
133
+ .to change(known_config, :port).from(3306).to 4000
134
+ end
135
+ end
136
+
137
+ context 'when passed nil' do
138
+ subject(:set_port) { known_config.port = nil }
139
+
140
+ it do
141
+ expect { set_port }
142
+ .to change(known_config, :port).from(3306).to be_nil
143
+ end
144
+ end
145
+
146
+ context 'when passed an invalid port number' do
147
+ subject(:set_port) { known_config.port = 'default' }
148
+
149
+ it do
150
+ expect { set_port }
151
+ .to raise_error ArgumentError, 'invalid port number: default'
152
+ end
153
+ end
154
+ end
155
+
156
+ describe '#save' do
157
+ before { @original_file = Psych.load_file file }
158
+
159
+ context 'when the database is knwon' do
160
+ subject(:save_config) { known_config.save }
161
+
162
+ before do
163
+ known_config.port = 4000
164
+ known_config.user_name = 'dbtester'
165
+ known_config.user_password = 'supersecret'
166
+ known_config.session_user = 'tester'
167
+ end
168
+
169
+ it do
170
+ keypath = [:hosts, 'localhost', :port]
171
+ expect { save_config }
172
+ .to change { Psych.load_file(file).dig(*keypath) }
173
+ .from(3306).to 4000
174
+ end
175
+
176
+ it do
177
+ keypath = [:hosts, 'localhost',
178
+ :databases, 'SPSPEC', :db_user, :name]
179
+ expect { save_config }
180
+ .to change { Psych.load_file(file).dig(*keypath) }
181
+ .from('specmaster').to 'dbtester'
182
+ end
183
+
184
+ it do
185
+ keypath = [:hosts, 'localhost',
186
+ :databases, 'SPSPEC', :db_user, :password]
187
+ expect { save_config }
188
+ .to change { Psych.load_file(file).dig(*keypath) }
189
+ .from('masterpass').to 'supersecret'
190
+ end
191
+
192
+ it do
193
+ keypath = [:hosts, 'localhost',
194
+ :databases, 'SPSPEC', :sp_user]
195
+ expect { save_config }
196
+ .to change { Psych.load_file(file).dig(*keypath) }
197
+ .from('specuser').to 'tester'
198
+ end
199
+ end
200
+
201
+ context 'when the database is not known' do
202
+ subject(:save_config) { unknown_config.save }
203
+
204
+ before do
205
+ unknown_config.port = 4000
206
+ end
207
+
208
+ it do
209
+ keypath = [:hosts, 'localhost', :databases]
210
+ expect { save_config }
211
+ .to change { Psych.load_file(file).dig(*keypath) }
212
+ .to include('SPECBase')
213
+ end
214
+
215
+ it do
216
+ keypath = [:hosts, 'localhost', :port]
217
+ expect { save_config }
218
+ .to change { Psych.load_file(file).dig(*keypath) }
219
+ .from(3306).to 4000
220
+ end
221
+ end
222
+
223
+ context 'when the host is not known' do
224
+ subject :save_config do
225
+ described_class.new('cloudhost', 'SPSPEC', file).save
226
+ end
227
+
228
+ it do
229
+ expect { save_config }
230
+ .to change { Psych.load_file(file)[:hosts] }
231
+ .to include 'cloudhost'
232
+ end
233
+ end
234
+
235
+ after do
236
+ File.open(file, 'w') do |f|
237
+ f.write(Psych.dump(@original_file))
238
+ end
239
+ end
240
+ end
241
+
242
+ describe '#changed_user?' do
243
+ subject { known_config.changed_user? }
244
+
245
+ context 'when the user has not changed' do
246
+ it { is_expected.to be_falsey }
247
+ end
248
+
249
+ context 'when the user has changed' do
250
+ before { known_config.user_name = 'tester' }
251
+
252
+ it { is_expected.to be_truthy }
253
+ end
254
+ end
255
+
256
+ describe '#changed_password?' do
257
+ subject { known_config.changed_password? }
258
+
259
+ context 'when the user has not changed' do
260
+ it { is_expected.to be_falsey }
261
+ end
262
+
263
+ context 'when the user has changed' do
264
+ before { known_config.user_password = 'supersecret' }
265
+
266
+ it { is_expected.to be_truthy }
267
+ end
268
+ end
269
+
270
+ describe '#changed_port?' do
271
+ subject { known_config.changed_port? }
272
+
273
+ context 'when the user has not changed' do
274
+ it { is_expected.to be_falsey }
275
+ end
276
+
277
+ context 'when the user has changed' do
278
+ before { known_config.port = 3307 }
279
+
280
+ it { is_expected.to be_truthy }
281
+ end
282
+ end
283
+
284
+ describe '#changed_session_user?' do
285
+ subject { known_config.changed_session_user? }
286
+
287
+ context 'when the user has not changed' do
288
+ it { is_expected.to be_falsey }
289
+ end
290
+
291
+ context 'when the user has changed' do
292
+ before { known_config.session_user = 'tester' }
293
+
294
+ it { is_expected.to be_truthy }
295
+ end
296
+ end
297
+ end
298
+ end
299
+ end
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Tests for the
4
+ module Specify
5
+ module Configuration
6
+ RSpec.describe HostConfig do
7
+ let :config do
8
+ file = Pathname.new(Dir.pwd).join('spec', 'support', 'db.yml')
9
+ described_class.new(file)
10
+ end
11
+
12
+ describe '#directory?(directory)' do
13
+ context 'when the directory is known' do
14
+ subject { config.directory? 'sp_resource' }
15
+
16
+ it { is_expected.to be_truthy }
17
+ end
18
+
19
+ context 'when the directory is not known' do
20
+ subject { config.directory? 'home' }
21
+
22
+ it { is_expected.to be_falsey }
23
+ end
24
+ end
25
+
26
+ describe '#map_directory(directory, host)' do
27
+ subject :map_directory do
28
+ config.map_directory 'documents', 'cloudhost'
29
+ end
30
+
31
+ context 'when the directory is not mapped' do
32
+ it do
33
+ expect { map_directory }
34
+ .to change(config, :params).to include 'documents' => 'cloudhost'
35
+ end
36
+ end
37
+
38
+ context 'when the directory is mapped' do
39
+ before { config.map_directory 'documents', 'cloudhost' }
40
+
41
+ let(:e) { 'Directory \'documents\' already mapped' }
42
+
43
+ it do
44
+ expect { map_directory }.to raise_error e
45
+ end
46
+ end
47
+ end
48
+
49
+ describe '#params' do
50
+ subject { config.params }
51
+
52
+ it do
53
+ is_expected.to include 'sp_resource' => 'localhost'
54
+ end
55
+ end
56
+
57
+ describe '#resolve_host' do
58
+ subject { config.resolve_host('sp_resource') }
59
+
60
+ it { is_expected.to eq 'localhost' }
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,83 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ module Specify
5
+ # Tests for the Specify module
6
+ RSpec.describe Database do
7
+ let(:db) { SPSPEC }
8
+ let(:session) { Session.new('specuser', 'Test Collection') }
9
+
10
+ let :config do
11
+ Pathname.new(Dir.pwd).join('spec', 'support', 'db.yml')
12
+ end
13
+
14
+ describe '.load_config(hostname, database, config_file)' do
15
+ subject { described_class.load_config('localhost', 'SPSPEC', config) }
16
+
17
+ it do
18
+ is_expected.to be_a(Database)
19
+ .and have_attributes host: 'localhost',
20
+ database: 'SPSPEC',
21
+ port: 3306,
22
+ user: 'specmaster'
23
+ end
24
+ end
25
+
26
+ describe '#<<(session)' do
27
+ it do
28
+ expect { SPSPEC << session }
29
+ .to change(db, :sessions)
30
+ .from(be_empty)
31
+ .to including(an_instance_of(Session))
32
+ end
33
+
34
+ after { db.close }
35
+ end
36
+
37
+ describe '#close' do
38
+ before do
39
+ db << session
40
+ end
41
+
42
+ it do
43
+ expect { db.close }
44
+ .to change(db, :sessions)
45
+ .from(including(an_instance_of(Session)))
46
+ .to be_empty
47
+ end
48
+ end
49
+
50
+ describe '#connect' do
51
+ subject { db.connect }
52
+
53
+ it do
54
+ is_expected.to be_a(Sequel::Mysql2::Database)
55
+ .and have_attributes opts: a_hash_including(user: 'specmaster',
56
+ host: 'localhost',
57
+ port: 3306,
58
+ database: 'SPSPEC')
59
+ end
60
+ end
61
+
62
+ # describe '#start_session(user, collection)' do
63
+ # let :collection do
64
+ # Model::Collection.first CollectionName: 'Test Collection'
65
+ # end
66
+ #
67
+ # let(:user) { Model::User.first Name: 'specuser' }
68
+ #
69
+ # it do
70
+ # expect { db.start_session('specuser', 'Test Collection') }
71
+ # .to change(db, :sessions)
72
+ # .from(be_empty)
73
+ # .to including(an_instance_of(Session))
74
+ # end
75
+ #
76
+ # after { db.close }
77
+ # end
78
+
79
+ it 'returns a database connection' do
80
+ expect(SPSPEC.connect).to be_a_kind_of Sequel::Database
81
+ end
82
+ end
83
+ end
data/spec/examples.txt ADDED
@@ -0,0 +1,217 @@
1
+ example_id | status | run_time |
2
+ ---------------------------------------------------- | ------- | --------------- |
3
+ ./spec/branch_parser_spec.rb[1:1:1:1] | passed | 0.00094 seconds |
4
+ ./spec/branch_parser_spec.rb[1:1:2:1] | passed | 0.00091 seconds |
5
+ ./spec/branch_parser_spec.rb[1:1:3:1] | passed | 0.00094 seconds |
6
+ ./spec/branch_parser_spec.rb[1:1:4:1] | passed | 0.00097 seconds |
7
+ ./spec/branch_parser_spec.rb[1:2:1] | pending | 0.00001 seconds |
8
+ ./spec/branch_parser_spec.rb[1:2:2] | pending | 0 seconds |
9
+ ./spec/cli/stubs_spec.rb[1:1:1] | passed | 0.00066 seconds |
10
+ ./spec/configuration/config_spec.rb[1:1] | passed | 0.00148 seconds |
11
+ ./spec/configuration/config_spec.rb[1:2:1] | passed | 0.00091 seconds |
12
+ ./spec/configuration/config_spec.rb[1:2:2:1] | passed | 0.00096 seconds |
13
+ ./spec/configuration/config_spec.rb[1:2:3:1] | passed | 0.00046 seconds |
14
+ ./spec/configuration/config_spec.rb[1:2:4:1] | passed | 0.00179 seconds |
15
+ ./spec/configuration/config_spec.rb[1:2:5:1] | passed | 0.00114 seconds |
16
+ ./spec/configuration/config_spec.rb[1:2:6:1] | passed | 0.00221 seconds |
17
+ ./spec/configuration/config_spec.rb[1:3:1:1] | passed | 0.00105 seconds |
18
+ ./spec/configuration/config_spec.rb[1:3:2:1] | passed | 0.00077 seconds |
19
+ ./spec/configuration/config_spec.rb[1:4:1:1] | passed | 0.00109 seconds |
20
+ ./spec/configuration/config_spec.rb[1:4:2:1] | passed | 0.00077 seconds |
21
+ ./spec/configuration/config_spec.rb[1:5:1] | passed | 0.00104 seconds |
22
+ ./spec/configuration/config_spec.rb[1:6:1] | passed | 0.0282 seconds |
23
+ ./spec/configuration/config_spec.rb[1:6:2] | passed | 0.00258 seconds |
24
+ ./spec/configuration/config_spec.rb[1:7:1:1] | passed | 0.00073 seconds |
25
+ ./spec/configuration/config_spec.rb[1:7:2:1] | passed | 0.00068 seconds |
26
+ ./spec/configuration/config_spec.rb[1:8:1] | passed | 0.00069 seconds |
27
+ ./spec/configuration/db_config_spec.rb[1:1:1:1] | passed | 0.00102 seconds |
28
+ ./spec/configuration/db_config_spec.rb[1:1:2:1] | passed | 0.00182 seconds |
29
+ ./spec/configuration/db_config_spec.rb[1:2:1:1] | passed | 0.00298 seconds |
30
+ ./spec/configuration/db_config_spec.rb[1:2:2:1] | passed | 0.00071 seconds |
31
+ ./spec/configuration/db_config_spec.rb[1:3:1:1] | passed | 0.00067 seconds |
32
+ ./spec/configuration/db_config_spec.rb[1:3:2:1] | passed | 0.00066 seconds |
33
+ ./spec/configuration/db_config_spec.rb[1:4:1:1] | passed | 0.00104 seconds |
34
+ ./spec/configuration/db_config_spec.rb[1:4:2:1] | passed | 0.00065 seconds |
35
+ ./spec/configuration/db_config_spec.rb[1:5:1:1] | passed | 0.00102 seconds |
36
+ ./spec/configuration/db_config_spec.rb[1:5:2:1] | passed | 0.00106 seconds |
37
+ ./spec/configuration/db_config_spec.rb[1:6:1:1] | passed | 0.0009 seconds |
38
+ ./spec/configuration/db_config_spec.rb[1:6:2:1] | passed | 0.00071 seconds |
39
+ ./spec/configuration/db_config_spec.rb[1:6:3:1] | passed | 0.00086 seconds |
40
+ ./spec/configuration/db_config_spec.rb[1:6:4:1] | passed | 0.00067 seconds |
41
+ ./spec/configuration/db_config_spec.rb[1:7:1:1] | passed | 0.03866 seconds |
42
+ ./spec/configuration/db_config_spec.rb[1:7:1:2] | passed | 0.00722 seconds |
43
+ ./spec/configuration/db_config_spec.rb[1:7:1:3] | passed | 0.00929 seconds |
44
+ ./spec/configuration/db_config_spec.rb[1:7:1:4] | passed | 0.00584 seconds |
45
+ ./spec/configuration/db_config_spec.rb[1:7:2:1] | passed | 0.00453 seconds |
46
+ ./spec/configuration/db_config_spec.rb[1:7:2:2] | passed | 0.0054 seconds |
47
+ ./spec/configuration/db_config_spec.rb[1:7:3:1] | passed | 0.00688 seconds |
48
+ ./spec/configuration/db_config_spec.rb[1:8:1:1] | passed | 0.00056 seconds |
49
+ ./spec/configuration/db_config_spec.rb[1:8:2:1] | passed | 0.00061 seconds |
50
+ ./spec/configuration/db_config_spec.rb[1:9:1:1] | passed | 0.00062 seconds |
51
+ ./spec/configuration/db_config_spec.rb[1:9:2:1] | passed | 0.00062 seconds |
52
+ ./spec/configuration/db_config_spec.rb[1:10:1:1] | passed | 0.00069 seconds |
53
+ ./spec/configuration/db_config_spec.rb[1:10:2:1] | passed | 0.00064 seconds |
54
+ ./spec/configuration/db_config_spec.rb[1:11:1:1] | passed | 0.00063 seconds |
55
+ ./spec/configuration/db_config_spec.rb[1:11:2:1] | passed | 0.00069 seconds |
56
+ ./spec/configuration/host_config_spec.rb[1:1:1:1] | passed | 0.00068 seconds |
57
+ ./spec/configuration/host_config_spec.rb[1:1:2:1] | passed | 0.0008 seconds |
58
+ ./spec/configuration/host_config_spec.rb[1:2:1:1] | passed | 0.00103 seconds |
59
+ ./spec/configuration/host_config_spec.rb[1:2:2:1] | passed | 0.00083 seconds |
60
+ ./spec/configuration/host_config_spec.rb[1:3:1] | passed | 0.00068 seconds |
61
+ ./spec/configuration/host_config_spec.rb[1:4:1] | passed | 0.00062 seconds |
62
+ ./spec/database_spec.rb[1:1:1] | passed | 0.0009 seconds |
63
+ ./spec/database_spec.rb[1:2:1] | passed | 0.00264 seconds |
64
+ ./spec/database_spec.rb[1:3:1] | passed | 0.00261 seconds |
65
+ ./spec/database_spec.rb[1:4:1] | passed | 0.0006 seconds |
66
+ ./spec/database_spec.rb[1:5] | passed | 0.00021 seconds |
67
+ ./spec/models/app_resource_data_spec.rb[1:1:1] | passed | 0.00347 seconds |
68
+ ./spec/models/app_resource_data_spec.rb[1:1:2] | passed | 0.00263 seconds |
69
+ ./spec/models/app_resource_data_spec.rb[1:1:3] | passed | 0.00302 seconds |
70
+ ./spec/models/auto_numbering_scheme_spec.rb[1:1:1:1] | passed | 0.00097 seconds |
71
+ ./spec/models/auto_numbering_scheme_spec.rb[1:2:1] | passed | 0.003 seconds |
72
+ ./spec/models/auto_numbering_scheme_spec.rb[1:3:1] | passed | 0.00232 seconds |
73
+ ./spec/models/auto_numbering_scheme_spec.rb[1:4:1:1] | passed | 0.00288 seconds |
74
+ ./spec/models/auto_numbering_scheme_spec.rb[1:5:1:1] | passed | 0.0112 seconds |
75
+ ./spec/models/auto_numbering_scheme_spec.rb[1:6:1:1] | passed | 0.00142 seconds |
76
+ ./spec/models/collection_object_spec.rb[1:1:1:1] | passed | 0.01022 seconds |
77
+ ./spec/models/collection_object_spec.rb[1:1:2:1] | passed | 0.00811 seconds |
78
+ ./spec/models/collection_object_spec.rb[1:1:3:1] | passed | 0.00681 seconds |
79
+ ./spec/models/collection_object_spec.rb[1:1:4:1] | passed | 0.00272 seconds |
80
+ ./spec/models/collection_spec.rb[1:1:1] | passed | 0.00215 seconds |
81
+ ./spec/models/collection_spec.rb[1:2:1] | passed | 0.00193 seconds |
82
+ ./spec/models/discipline_spec.rb[1:1:1] | passed | 0.00156 seconds |
83
+ ./spec/models/discipline_spec.rb[1:2:1] | passed | 0.00132 seconds |
84
+ ./spec/models/record_set_spec.rb[1:1] | passed | 0.0023 seconds |
85
+ ./spec/models/user_spec.rb[1:1:1:1] | passed | 0.00335 seconds |
86
+ ./spec/models/user_spec.rb[1:1:2:1] | passed | 0.00306 seconds |
87
+ ./spec/models/user_spec.rb[1:2:1:1] | passed | 0.00241 seconds |
88
+ ./spec/models/user_spec.rb[1:2:1:2] | passed | 0.00274 seconds |
89
+ ./spec/models/user_spec.rb[1:2:2:1] | passed | 0.00242 seconds |
90
+ ./spec/models/user_spec.rb[1:2:2:2] | passed | 0.00282 seconds |
91
+ ./spec/models/user_spec.rb[1:2:3:1] | passed | 0.00265 seconds |
92
+ ./spec/models/user_spec.rb[1:3:1] | passed | 0.00248 seconds |
93
+ ./spec/models/user_spec.rb[1:3:2] | passed | 0.00364 seconds |
94
+ ./spec/models/user_spec.rb[1:4:1:1] | passed | 0.00247 seconds |
95
+ ./spec/models/user_spec.rb[1:4:2:1] | passed | 0.00284 seconds |
96
+ ./spec/models/user_spec.rb[1:5:1] | passed | 0.00314 seconds |
97
+ ./spec/models/user_spec.rb[1:6:1] | passed | 0.00193 seconds |
98
+ ./spec/models/user_spec.rb[1:6:2] | passed | 0.00305 seconds |
99
+ ./spec/models/user_spec.rb[1:7:1] | passed | 0.00272 seconds |
100
+ ./spec/models/user_spec.rb[1:8:1] | passed | 0.0019 seconds |
101
+ ./spec/models/view_set_object_spec.rb[1:1:1] | passed | 0.0048 seconds |
102
+ ./spec/models/view_set_object_spec.rb[1:1:2] | passed | 0.00511 seconds |
103
+ ./spec/models/view_set_object_spec.rb[1:1:3] | passed | 0.00578 seconds |
104
+ ./spec/models/view_set_object_spec.rb[1:1:4] | passed | 0.00557 seconds |
105
+ ./spec/models/view_set_object_spec.rb[1:1:5] | passed | 0.01336 seconds |
106
+ ./spec/models/view_set_object_spec.rb[1:1:6] | passed | 0.00553 seconds |
107
+ ./spec/models/view_set_object_spec.rb[1:1:7] | passed | 0.00584 seconds |
108
+ ./spec/number_format_spec.rb[1:1:1] | passed | 0.00024 seconds |
109
+ ./spec/number_format_spec.rb[1:2:1] | passed | 0.00028 seconds |
110
+ ./spec/number_format_spec.rb[1:3:1:1] | passed | 0.00171 seconds |
111
+ ./spec/number_format_spec.rb[1:3:2:1] | passed | 0.00038 seconds |
112
+ ./spec/number_format_spec.rb[1:4:1] | passed | 0.00026 seconds |
113
+ ./spec/number_format_spec.rb[1:5:1] | passed | 0.00035 seconds |
114
+ ./spec/services/stub_generator_spec.rb[1:1:1:1] | passed | 0.01373 seconds |
115
+ ./spec/services/stub_generator_spec.rb[1:1:1:2] | passed | 0.01531 seconds |
116
+ ./spec/services/stub_generator_spec.rb[1:1:1:3] | passed | 0.01606 seconds |
117
+ ./spec/services/stub_generator_spec.rb[1:1:1:4] | passed | 0.01654 seconds |
118
+ ./spec/services/stub_generator_spec.rb[1:1:1:5] | passed | 0.01511 seconds |
119
+ ./spec/services/stub_generator_spec.rb[1:1:1:6] | passed | 0.01425 seconds |
120
+ ./spec/services/stub_generator_spec.rb[1:1:1:7] | passed | 0.01436 seconds |
121
+ ./spec/services/stub_generator_spec.rb[1:1:1:8] | passed | 0.01284 seconds |
122
+ ./spec/services/stub_generator_spec.rb[1:1:2:1] | passed | 0.01136 seconds |
123
+ ./spec/services/stub_generator_spec.rb[1:1:2:2] | passed | 0.01187 seconds |
124
+ ./spec/services/stub_generator_spec.rb[1:1:2:3] | passed | 0.01211 seconds |
125
+ ./spec/services/stub_generator_spec.rb[1:1:2:4] | passed | 0.01356 seconds |
126
+ ./spec/services/stub_generator_spec.rb[1:1:2:5] | passed | 0.01108 seconds |
127
+ ./spec/services/stub_generator_spec.rb[1:1:2:6] | passed | 0.01022 seconds |
128
+ ./spec/services/stub_generator_spec.rb[1:1:2:7] | passed | 0.01183 seconds |
129
+ ./spec/services/stub_generator_spec.rb[1:1:2:8] | passed | 0.0103 seconds |
130
+ ./spec/services/stub_generator_spec.rb[1:2:1:1] | passed | 0.00437 seconds |
131
+ ./spec/services/stub_generator_spec.rb[1:2:2:1] | passed | 0.00498 seconds |
132
+ ./spec/services/stub_generator_spec.rb[1:3:1:1] | passed | 0.00524 seconds |
133
+ ./spec/services/stub_generator_spec.rb[1:3:2:1] | passed | 0.0053 seconds |
134
+ ./spec/services/stub_generator_spec.rb[1:4:1:1] | passed | 0.00644 seconds |
135
+ ./spec/services/stub_generator_spec.rb[1:4:2:1] | passed | 0.01018 seconds |
136
+ ./spec/services/stub_generator_spec.rb[1:4:3:1] | passed | 0.00813 seconds |
137
+ ./spec/services/stub_generator_spec.rb[1:4:4:1] | passed | 0.01062 seconds |
138
+ ./spec/services/stub_generator_spec.rb[1:4:5:1] | passed | 0.00596 seconds |
139
+ ./spec/services/stub_generator_spec.rb[1:4:6:1] | passed | 0.00656 seconds |
140
+ ./spec/services/stub_generator_spec.rb[1:4:7:1] | passed | 0.00697 seconds |
141
+ ./spec/services/stub_generator_spec.rb[1:5:1:1] | passed | 0.0119 seconds |
142
+ ./spec/services/stub_generator_spec.rb[1:5:2:1] | passed | 0.00877 seconds |
143
+ ./spec/services/stub_generator_spec.rb[1:5:3:1] | passed | 0.00428 seconds |
144
+ ./spec/services/stub_generator_spec.rb[1:6:1] | passed | 0.10222 seconds |
145
+ ./spec/services/stub_generator_spec.rb[1:6:2] | passed | 0.0215 seconds |
146
+ ./spec/services/stub_generator_spec.rb[1:6:3] | passed | 0.0703 seconds |
147
+ ./spec/services/stub_generator_spec.rb[1:6:4] | passed | 0.07428 seconds |
148
+ ./spec/services/stub_generator_spec.rb[1:6:5:1] | passed | 0.01578 seconds |
149
+ ./spec/services/stub_generator_spec.rb[1:6:6:1] | passed | 0.0182 seconds |
150
+ ./spec/services/stub_generator_spec.rb[1:6:7:1] | passed | 0.03094 seconds |
151
+ ./spec/services/stub_generator_spec.rb[1:6:8:1] | passed | 0.04592 seconds |
152
+ ./spec/services/stub_generator_spec.rb[1:6:9:1] | passed | 0.03806 seconds |
153
+ ./spec/services/stub_generator_spec.rb[1:6:10:1] | passed | 0.02571 seconds |
154
+ ./spec/services/stub_generator_spec.rb[1:7:1:1] | passed | 0.00582 seconds |
155
+ ./spec/services/stub_generator_spec.rb[1:7:2:1] | passed | 0.00579 seconds |
156
+ ./spec/services/stub_generator_spec.rb[1:8:1:1] | passed | 0.00846 seconds |
157
+ ./spec/services/stub_generator_spec.rb[1:8:2:1] | passed | 0.01164 seconds |
158
+ ./spec/services/stub_generator_spec.rb[1:8:3:1] | passed | 0.01041 seconds |
159
+ ./spec/services/stub_generator_spec.rb[1:9:1:1] | passed | 0.00705 seconds |
160
+ ./spec/services/stub_generator_spec.rb[1:9:2:1] | passed | 0.00605 seconds |
161
+ ./spec/services/stub_generator_spec.rb[1:10:1] | passed | 0.0098 seconds |
162
+ ./spec/services/stub_generator_spec.rb[1:11:1] | passed | 0.00591 seconds |
163
+ ./spec/services/stub_generator_spec.rb[1:12:1] | pending | 0.02768 seconds |
164
+ ./spec/services/stub_generator_spec.rb[1:13:1:1] | passed | 0.00469 seconds |
165
+ ./spec/services/stub_generator_spec.rb[1:13:2:1] | passed | 0.00473 seconds |
166
+ ./spec/services/stub_generator_spec.rb[1:14:1] | passed | 0.0059 seconds |
167
+ ./spec/services/view_loader_spec.rb[1:1:1:1] | passed | 0.00441 seconds |
168
+ ./spec/services/view_loader_spec.rb[1:1:2:1] | passed | 0.00501 seconds |
169
+ ./spec/services/view_loader_spec.rb[1:1:3:1] | passed | 0.00568 seconds |
170
+ ./spec/services/view_loader_spec.rb[1:1:4:1] | passed | 0.00572 seconds |
171
+ ./spec/services/view_loader_spec.rb[1:2:1] | passed | 0.00119 seconds |
172
+ ./spec/services/view_loader_spec.rb[1:3:1] | passed | 0.00037 seconds |
173
+ ./spec/services/view_loader_spec.rb[1:4:1:1] | passed | 0.00456 seconds |
174
+ ./spec/services/view_loader_spec.rb[1:4:2:1] | passed | 0.00423 seconds |
175
+ ./spec/services/view_loader_spec.rb[1:4:3:1] | passed | 0.00483 seconds |
176
+ ./spec/services/view_loader_spec.rb[1:4:4:1] | passed | 0.00441 seconds |
177
+ ./spec/services/view_loader_spec.rb[1:4:5:1] | passed | 0.00392 seconds |
178
+ ./spec/services/view_loader_spec.rb[1:5:1:1:1] | passed | 0.00466 seconds |
179
+ ./spec/services/view_loader_spec.rb[1:5:1:2:1] | passed | 0.00574 seconds |
180
+ ./spec/services/view_loader_spec.rb[1:5:1:3:1] | passed | 0.00941 seconds |
181
+ ./spec/services/view_loader_spec.rb[1:5:2:1:1] | passed | 0.06862 seconds |
182
+ ./spec/services/view_loader_spec.rb[1:5:2:2:1] | passed | 0.01894 seconds |
183
+ ./spec/services/view_loader_spec.rb[1:6:1:1] | passed | 0.00369 seconds |
184
+ ./spec/services/view_loader_spec.rb[1:6:2:1] | passed | 0.00427 seconds |
185
+ ./spec/services/view_loader_spec.rb[1:7:1] | passed | 0.00474 seconds |
186
+ ./spec/services/view_loader_spec.rb[1:8:1:1] | passed | 0.00364 seconds |
187
+ ./spec/services/view_loader_spec.rb[1:8:2:1] | passed | 0.00432 seconds |
188
+ ./spec/services/view_loader_spec.rb[1:8:3:1] | passed | 0.00414 seconds |
189
+ ./spec/services/view_loader_spec.rb[1:8:4:1] | passed | 0.00554 seconds |
190
+ ./spec/services/view_loader_spec.rb[1:9:1:1] | passed | 0.00446 seconds |
191
+ ./spec/services/view_loader_spec.rb[1:9:2:1] | passed | 0.00473 seconds |
192
+ ./spec/services/view_loader_spec.rb[1:9:3:1] | passed | 0.00575 seconds |
193
+ ./spec/services/view_loader_spec.rb[1:9:4:1] | passed | 0.0054 seconds |
194
+ ./spec/services/view_loader_spec.rb[1:10:1] | passed | 0.0044 seconds |
195
+ ./spec/services/view_loader_spec.rb[1:11:1:1] | passed | 0.00368 seconds |
196
+ ./spec/services/view_loader_spec.rb[1:11:2:1] | passed | 0.00502 seconds |
197
+ ./spec/services/view_loader_spec.rb[1:11:3:1] | passed | 0.00463 seconds |
198
+ ./spec/services/view_loader_spec.rb[1:11:4:1] | passed | 0.0052 seconds |
199
+ ./spec/services/view_loader_spec.rb[1:12:1:1] | passed | 0.00444 seconds |
200
+ ./spec/services/view_loader_spec.rb[1:12:2:1] | passed | 0.00474 seconds |
201
+ ./spec/services/view_loader_spec.rb[1:12:3:1] | passed | 0.00381 seconds |
202
+ ./spec/services/view_loader_spec.rb[1:12:4:1] | passed | 0.0042 seconds |
203
+ ./spec/session_spec.rb[1:1:1] | passed | 0.00414 seconds |
204
+ ./spec/session_spec.rb[1:1:2] | passed | 0.01525 seconds |
205
+ ./spec/session_spec.rb[1:1:3:1] | passed | 0.00554 seconds |
206
+ ./spec/session_spec.rb[1:2:1] | passed | 0.00503 seconds |
207
+ ./spec/session_spec.rb[1:2:2] | passed | 0.00471 seconds |
208
+ ./spec/session_spec.rb[1:3:1:1] | passed | 0.0029 seconds |
209
+ ./spec/session_spec.rb[1:3:2:1] | passed | 0.00178 seconds |
210
+ ./spec/session_spec.rb[1:4:1] | passed | 0.0063 seconds |
211
+ ./spec/user_type_spec.rb[1:1] | passed | 0.00026 seconds |
212
+ ./spec/user_type_spec.rb[1:2] | passed | 0.00029 seconds |
213
+ ./spec/user_type_spec.rb[1:3:1] | passed | 0.00856 seconds |
214
+ ./spec/user_type_spec.rb[1:4:1:1] | passed | 0.00029 seconds |
215
+ ./spec/user_type_spec.rb[1:4:2:1] | passed | 0.00027 seconds |
216
+ ./spec/user_type_spec.rb[1:5:1] | passed | 0.00262 seconds |
217
+ ./spec/user_type_spec.rb[1:6:1] | passed | 0.00206 seconds |