enju_circulation 0.3.0.beta.1 → 0.3.0.rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2171f72d6b8294ecadc813f1fce2913b181b8ada
4
- data.tar.gz: 7cc0cce388307b726847650cbdf55ecea30b8754
3
+ metadata.gz: d79728a1113e64607ccf4871028440699e018cf5
4
+ data.tar.gz: 1fc47c59aa139b6ac080d681bd4854703cd02758
5
5
  SHA512:
6
- metadata.gz: 231d92bae9545ef89cf5a88a4db5e33664f9d3504c6c937beb84c7c32641d62c0919ac828fe5ed634df3ff09227518e37c6d081a16212972909eeb9f96f7fcfe
7
- data.tar.gz: 2c7ccd5a94d2277fa33e96aa403ad2c09f0ffb858e4b3eada1ee3660a293b58518401ab27c61c3d242f0e27a83a44de67fbbe4f1397d59b84b51913a75ec03a8
6
+ metadata.gz: b4ee39a3f42650766f658780ef10e86a3d7ebcc762acd0209c3b41f415df3aa411e26a4cf44464cf37a0b3ab3d739310d2e0b5ad30e7ecb7fcc6772dd6cbdb26
7
+ data.tar.gz: 42837b144a3dd0c117ab82c965a67f8a9c6817d107bd73e0af31496f2520ad11067b842fff09121c17f6f2e1122cecfb3ea69101596a0cc8f17a2e2477bb82b2
@@ -1,3 +1,3 @@
1
1
  module EnjuCirculation
2
- VERSION = "0.3.0.beta.1"
2
+ VERSION = "0.3.0.rc.1"
3
3
  end
@@ -1,441 +0,0 @@
1
- require 'rails_helper'
2
-
3
- describe CarrierTypeHasCheckoutTypesController do
4
- fixtures :all
5
-
6
- describe 'GET index' do
7
- before(:each) do
8
- FactoryBot.create(:carrier_type_has_checkout_type)
9
- end
10
-
11
- describe 'When logged in as Administrator' do
12
- login_fixture_admin
13
-
14
- it 'assigns all carrier_type_has_checkout_types as @carrier_type_has_checkout_types' do
15
- get :index
16
- assigns(:carrier_type_has_checkout_types).should eq(CarrierTypeHasCheckoutType.page(1))
17
- end
18
- end
19
-
20
- describe 'When logged in as Librarian' do
21
- login_fixture_librarian
22
-
23
- it 'assigns all carrier_type_has_checkout_types as @carrier_type_has_checkout_types' do
24
- get :index
25
- assigns(:carrier_type_has_checkout_types).should eq(CarrierTypeHasCheckoutType.page(1))
26
- end
27
- end
28
-
29
- describe 'When logged in as User' do
30
- login_fixture_user
31
-
32
- it 'assigns all carrier_type_has_checkout_types as @carrier_type_has_checkout_types' do
33
- get :index
34
- assigns(:carrier_type_has_checkout_types).should be_nil
35
- response.should be_forbidden
36
- end
37
- end
38
-
39
- describe 'When not logged in' do
40
- it 'assigns all carrier_type_has_checkout_types as @carrier_type_has_checkout_types' do
41
- get :index
42
- assigns(:carrier_type_has_checkout_types).should be_nil
43
- response.should redirect_to(new_user_session_url)
44
- end
45
- end
46
- end
47
-
48
- describe 'GET show' do
49
- describe 'When logged in as Administrator' do
50
- login_fixture_admin
51
-
52
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
53
- carrier_type_has_checkout_type = FactoryBot.create(:carrier_type_has_checkout_type)
54
- get :show, params: { id: carrier_type_has_checkout_type.id }
55
- assigns(:carrier_type_has_checkout_type).should eq(carrier_type_has_checkout_type)
56
- end
57
- end
58
-
59
- describe 'When logged in as Librarian' do
60
- login_fixture_librarian
61
-
62
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
63
- carrier_type_has_checkout_type = FactoryBot.create(:carrier_type_has_checkout_type)
64
- get :show, params: { id: carrier_type_has_checkout_type.id }
65
- assigns(:carrier_type_has_checkout_type).should eq(carrier_type_has_checkout_type)
66
- end
67
- end
68
-
69
- describe 'When logged in as User' do
70
- login_fixture_user
71
-
72
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
73
- carrier_type_has_checkout_type = FactoryBot.create(:carrier_type_has_checkout_type)
74
- get :show, params: { id: carrier_type_has_checkout_type.id }
75
- assigns(:carrier_type_has_checkout_type).should eq(carrier_type_has_checkout_type)
76
- end
77
- end
78
-
79
- describe 'When not logged in' do
80
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
81
- carrier_type_has_checkout_type = FactoryBot.create(:carrier_type_has_checkout_type)
82
- get :show, params: { id: carrier_type_has_checkout_type.id }
83
- assigns(:carrier_type_has_checkout_type).should eq(carrier_type_has_checkout_type)
84
- end
85
- end
86
- end
87
-
88
- describe 'GET new' do
89
- describe 'When logged in as Administrator' do
90
- login_fixture_admin
91
-
92
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
93
- get :new
94
- assigns(:carrier_type_has_checkout_type).should_not be_valid
95
- response.should be_success
96
- end
97
- end
98
-
99
- describe 'When logged in as Librarian' do
100
- login_fixture_librarian
101
-
102
- it 'should not assign the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
103
- get :new
104
- assigns(:carrier_type_has_checkout_type).should be_nil
105
- response.should be_forbidden
106
- end
107
- end
108
-
109
- describe 'When logged in as User' do
110
- login_fixture_user
111
-
112
- it 'should not assign the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
113
- get :new
114
- assigns(:carrier_type_has_checkout_type).should be_nil
115
- response.should be_forbidden
116
- end
117
- end
118
-
119
- describe 'When not logged in' do
120
- it 'should not assign the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
121
- get :new
122
- assigns(:carrier_type_has_checkout_type).should be_nil
123
- response.should redirect_to(new_user_session_url)
124
- end
125
- end
126
- end
127
-
128
- describe 'GET edit' do
129
- describe 'When logged in as Administrator' do
130
- login_fixture_admin
131
-
132
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
133
- carrier_type_has_checkout_type = FactoryBot.create(:carrier_type_has_checkout_type)
134
- get :edit, params: { id: carrier_type_has_checkout_type.id }
135
- assigns(:carrier_type_has_checkout_type).should eq(carrier_type_has_checkout_type)
136
- end
137
- end
138
-
139
- describe 'When logged in as Librarian' do
140
- login_fixture_librarian
141
-
142
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
143
- carrier_type_has_checkout_type = FactoryBot.create(:carrier_type_has_checkout_type)
144
- get :edit, params: { id: carrier_type_has_checkout_type.id }
145
- assigns(:carrier_type_has_checkout_type).should eq(carrier_type_has_checkout_type)
146
- end
147
- end
148
-
149
- describe 'When logged in as User' do
150
- login_fixture_user
151
-
152
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
153
- carrier_type_has_checkout_type = FactoryBot.create(:carrier_type_has_checkout_type)
154
- get :edit, params: { id: carrier_type_has_checkout_type.id }
155
- response.should be_forbidden
156
- end
157
- end
158
-
159
- describe 'When not logged in' do
160
- it 'should not assign the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
161
- carrier_type_has_checkout_type = FactoryBot.create(:carrier_type_has_checkout_type)
162
- get :edit, params: { id: carrier_type_has_checkout_type.id }
163
- response.should redirect_to(new_user_session_url)
164
- end
165
- end
166
- end
167
-
168
- describe 'POST create' do
169
- before(:each) do
170
- @attrs = FactoryBot.attributes_for(:carrier_type_has_checkout_type)
171
- @invalid_attrs = { carrier_type_id: '' }
172
- end
173
-
174
- describe 'When logged in as Administrator' do
175
- login_fixture_admin
176
-
177
- describe 'with valid params' do
178
- it 'assigns a newly created carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
179
- post :create, params: { carrier_type_has_checkout_type: @attrs }
180
- assigns(:carrier_type_has_checkout_type).should be_valid
181
- end
182
-
183
- it 'redirects to the created patron' do
184
- post :create, params: { carrier_type_has_checkout_type: @attrs }
185
- response.should redirect_to(assigns(:carrier_type_has_checkout_type))
186
- end
187
- end
188
-
189
- describe 'with invalid params' do
190
- it 'assigns a newly created but unsaved carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
191
- post :create, params: { carrier_type_has_checkout_type: @invalid_attrs }
192
- assigns(:carrier_type_has_checkout_type).should_not be_valid
193
- end
194
-
195
- it "re-renders the 'new' template" do
196
- post :create, params: { carrier_type_has_checkout_type: @invalid_attrs }
197
- response.should render_template('new')
198
- end
199
- end
200
- end
201
-
202
- describe 'When logged in as Librarian' do
203
- login_fixture_librarian
204
-
205
- describe 'with valid params' do
206
- it 'assigns a newly created carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
207
- post :create, params: { carrier_type_has_checkout_type: @attrs }
208
- assigns(:carrier_type_has_checkout_type).should be_nil
209
- end
210
-
211
- it 'should be forbidden' do
212
- post :create, params: { carrier_type_has_checkout_type: @attrs }
213
- response.should be_forbidden
214
- end
215
- end
216
-
217
- describe 'with invalid params' do
218
- it 'assigns a newly created but unsaved carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
219
- post :create, params: { carrier_type_has_checkout_type: @invalid_attrs }
220
- assigns(:carrier_type_has_checkout_type).should be_nil
221
- end
222
-
223
- it 'should be forbidden' do
224
- post :create, params: { carrier_type_has_checkout_type: @invalid_attrs }
225
- response.should be_forbidden
226
- end
227
- end
228
- end
229
-
230
- describe 'When logged in as User' do
231
- login_fixture_user
232
-
233
- describe 'with valid params' do
234
- it 'assigns a newly created carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
235
- post :create, params: { carrier_type_has_checkout_type: @attrs }
236
- assigns(:carrier_type_has_checkout_type).should be_nil
237
- end
238
-
239
- it 'should be forbidden' do
240
- post :create, params: { carrier_type_has_checkout_type: @attrs }
241
- response.should be_forbidden
242
- end
243
- end
244
-
245
- describe 'with invalid params' do
246
- it 'assigns a newly created but unsaved carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
247
- post :create, params: { carrier_type_has_checkout_type: @invalid_attrs }
248
- assigns(:carrier_type_has_checkout_type).should be_nil
249
- end
250
-
251
- it 'should be forbidden' do
252
- post :create, params: { carrier_type_has_checkout_type: @invalid_attrs }
253
- response.should be_forbidden
254
- end
255
- end
256
- end
257
-
258
- describe 'When not logged in' do
259
- describe 'with valid params' do
260
- it 'assigns a newly created carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
261
- post :create, params: { carrier_type_has_checkout_type: @attrs }
262
- assigns(:carrier_type_has_checkout_type).should be_nil
263
- end
264
-
265
- it 'should be forbidden' do
266
- post :create, params: { carrier_type_has_checkout_type: @attrs }
267
- response.should redirect_to(new_user_session_url)
268
- end
269
- end
270
-
271
- describe 'with invalid params' do
272
- it 'assigns a newly created but unsaved carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
273
- post :create, params: { carrier_type_has_checkout_type: @invalid_attrs }
274
- assigns(:carrier_type_has_checkout_type).should be_nil
275
- end
276
-
277
- it 'should be forbidden' do
278
- post :create, params: { carrier_type_has_checkout_type: @invalid_attrs }
279
- response.should redirect_to(new_user_session_url)
280
- end
281
- end
282
- end
283
- end
284
-
285
- describe 'PUT update' do
286
- before(:each) do
287
- @carrier_type_has_checkout_type = FactoryBot.create(:carrier_type_has_checkout_type)
288
- @attrs = FactoryBot.attributes_for(:carrier_type_has_checkout_type)
289
- @invalid_attrs = { carrier_type_id: '' }
290
- end
291
-
292
- describe 'When logged in as Administrator' do
293
- login_fixture_admin
294
-
295
- describe 'with valid params' do
296
- it 'updates the requested carrier_type_has_checkout_type' do
297
- put :update, params: { id: @carrier_type_has_checkout_type.id, carrier_type_has_checkout_type: @attrs }
298
- end
299
-
300
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
301
- put :update, params: { id: @carrier_type_has_checkout_type.id, carrier_type_has_checkout_type: @attrs }
302
- assigns(:carrier_type_has_checkout_type).should eq(@carrier_type_has_checkout_type)
303
- response.should redirect_to(@carrier_type_has_checkout_type)
304
- end
305
- end
306
-
307
- describe 'with invalid params' do
308
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
309
- put :update, params: { id: @carrier_type_has_checkout_type.id, carrier_type_has_checkout_type: @invalid_attrs }
310
- response.should render_template('edit')
311
- end
312
- end
313
- end
314
-
315
- describe 'When logged in as Librarian' do
316
- login_fixture_librarian
317
-
318
- describe 'with valid params' do
319
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
320
- put :update, params: { id: @carrier_type_has_checkout_type.id, carrier_type_has_checkout_type: @attrs }
321
- end
322
-
323
- it 'should be forbidden' do
324
- put :update, params: { id: @carrier_type_has_checkout_type.id, carrier_type_has_checkout_type: @attrs }
325
- response.should be_forbidden
326
- end
327
- end
328
-
329
- describe 'with invalid params' do
330
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
331
- put :update, params: { id: @carrier_type_has_checkout_type.id, carrier_type_has_checkout_type: @invalid_attrs }
332
- assigns(:carrier_type_has_checkout_type).should eq(@carrier_type_has_checkout_type)
333
- end
334
-
335
- it 'should be forbidden' do
336
- put :update, params: { id: @carrier_type_has_checkout_type.id, carrier_type_has_checkout_type: @invalid_attrs }
337
- response.should be_forbidden
338
- end
339
- end
340
- end
341
-
342
- describe 'When logged in as User' do
343
- login_fixture_user
344
-
345
- describe 'with valid params' do
346
- it 'updates the requested carrier_type_has_checkout_type' do
347
- put :update, params: { id: @carrier_type_has_checkout_type.id, carrier_type_has_checkout_type: @attrs }
348
- end
349
-
350
- it 'should be forbidden' do
351
- put :update, params: { id: @carrier_type_has_checkout_type.id, carrier_type_has_checkout_type: @attrs }
352
- assigns(:carrier_type_has_checkout_type).should eq(@carrier_type_has_checkout_type)
353
- response.should be_forbidden
354
- end
355
- end
356
-
357
- describe 'with invalid params' do
358
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
359
- put :update, params: { id: @carrier_type_has_checkout_type.id, carrier_type_has_checkout_type: @invalid_attrs }
360
- response.should be_forbidden
361
- end
362
- end
363
- end
364
-
365
- describe 'When not logged in' do
366
- describe 'with valid params' do
367
- it 'updates the requested carrier_type_has_checkout_type' do
368
- put :update, params: { id: @carrier_type_has_checkout_type.id, carrier_type_has_checkout_type: @attrs }
369
- end
370
-
371
- it 'should be forbidden' do
372
- put :update, params: { id: @carrier_type_has_checkout_type.id, carrier_type_has_checkout_type: @attrs }
373
- response.should redirect_to(new_user_session_url)
374
- end
375
- end
376
-
377
- describe 'with invalid params' do
378
- it 'assigns the requested carrier_type_has_checkout_type as @carrier_type_has_checkout_type' do
379
- put :update, params: { id: @carrier_type_has_checkout_type.id, carrier_type_has_checkout_type: @invalid_attrs }
380
- response.should redirect_to(new_user_session_url)
381
- end
382
- end
383
- end
384
- end
385
-
386
- describe 'DELETE destroy' do
387
- before(:each) do
388
- @carrier_type_has_checkout_type = FactoryBot.create(:carrier_type_has_checkout_type)
389
- end
390
-
391
- describe 'When logged in as Administrator' do
392
- login_fixture_admin
393
-
394
- it 'destroys the requested carrier_type_has_checkout_type' do
395
- delete :destroy, params: { id: @carrier_type_has_checkout_type.id }
396
- end
397
-
398
- it 'redirects to the carrier_type_has_checkout_types list' do
399
- delete :destroy, params: { id: @carrier_type_has_checkout_type.id }
400
- response.should redirect_to(carrier_type_has_checkout_types_url)
401
- end
402
- end
403
-
404
- describe 'When logged in as Librarian' do
405
- login_fixture_librarian
406
-
407
- it 'destroys the requested carrier_type_has_checkout_type' do
408
- delete :destroy, params: { id: @carrier_type_has_checkout_type.id }
409
- end
410
-
411
- it 'redirects to the carrier_type_has_checkout_types list' do
412
- delete :destroy, params: { id: @carrier_type_has_checkout_type.id }
413
- response.should be_forbidden
414
- end
415
- end
416
-
417
- describe 'When logged in as User' do
418
- login_fixture_user
419
-
420
- it 'destroys the requested carrier_type_has_checkout_type' do
421
- delete :destroy, params: { id: @carrier_type_has_checkout_type.id }
422
- end
423
-
424
- it 'should be forbidden' do
425
- delete :destroy, params: { id: @carrier_type_has_checkout_type.id }
426
- response.should be_forbidden
427
- end
428
- end
429
-
430
- describe 'When not logged in' do
431
- it 'destroys the requested carrier_type_has_checkout_type' do
432
- delete :destroy, params: { id: @carrier_type_has_checkout_type.id }
433
- end
434
-
435
- it 'should be forbidden' do
436
- delete :destroy, params: { id: @carrier_type_has_checkout_type.id }
437
- response.should redirect_to(new_user_session_url)
438
- end
439
- end
440
- end
441
- end