enju_circulation 0.2.0 → 0.2.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 +4 -4
- data/app/helpers/items_helper.rb +1 -1
- data/app/models/checked_item.rb +2 -1
- data/app/views/carrier_types/_carrier_type_has_checkout_type_fields.html.erb +1 -1
- data/lib/enju_circulation/version.rb +1 -1
- data/lib/tasks/enju_circulation_tasks.rake +3 -2
- data/spec/controllers/carrier_type_has_checkout_types_controller_spec.rb +152 -152
- data/spec/controllers/checked_items_controller_spec.rb +135 -135
- data/spec/controllers/checkins_controller_spec.rb +161 -161
- data/spec/controllers/checkout_types_controller_spec.rb +152 -152
- data/spec/controllers/checkouts_controller_spec.rb +103 -103
- data/spec/controllers/circulation_statuses_controller_spec.rb +152 -152
- data/spec/controllers/item_has_use_restrictions_controller_spec.rb +152 -152
- data/spec/controllers/lending_policies_controller_spec.rb +150 -150
- data/spec/controllers/manifestation_checkout_stats_controller_spec.rb +152 -152
- data/spec/controllers/manifestation_reserve_stats_controller_spec.rb +152 -152
- data/spec/controllers/profiles_controller_spec.rb +4 -4
- data/spec/controllers/reserves_controller_spec.rb +249 -249
- data/spec/controllers/use_restrictions_controller_spec.rb +153 -153
- data/spec/controllers/user_checkout_stats_controller_spec.rb +152 -152
- data/spec/controllers/user_group_has_checkout_types_controller_spec.rb +150 -150
- data/spec/controllers/user_reserve_stats_controller_spec.rb +152 -152
- data/spec/dummy/db/schema.rb +12 -2
- data/spec/fixtures/checked_items.yml +2 -1
- data/spec/helpers/items_helper_spec.rb +0 -1
- data/spec/models/checked_item_spec.rb +2 -1
- metadata +3 -17
@@ -9,119 +9,119 @@ describe CirculationStatusesController do
|
|
9
9
|
FactoryGirl.attributes_for(:circulation_status)
|
10
10
|
end
|
11
11
|
|
12
|
-
describe
|
12
|
+
describe 'GET index' do
|
13
13
|
before(:each) do
|
14
14
|
FactoryGirl.create(:circulation_status)
|
15
15
|
end
|
16
16
|
|
17
|
-
describe
|
17
|
+
describe 'When logged in as Administrator' do
|
18
18
|
login_fixture_admin
|
19
19
|
|
20
|
-
it
|
20
|
+
it 'assigns all circulation_statuses as @circulation_statuses' do
|
21
21
|
get :index
|
22
22
|
assigns(:circulation_statuses).should eq(CirculationStatus.order(:position))
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
describe
|
26
|
+
describe 'When logged in as Librarian' do
|
27
27
|
login_fixture_librarian
|
28
28
|
|
29
|
-
it
|
29
|
+
it 'assigns all circulation_statuses as @circulation_statuses' do
|
30
30
|
get :index
|
31
31
|
assigns(:circulation_statuses).should eq(CirculationStatus.order(:position))
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
describe
|
35
|
+
describe 'When logged in as User' do
|
36
36
|
login_fixture_user
|
37
37
|
|
38
|
-
it
|
38
|
+
it 'assigns all circulation_statuses as @circulation_statuses' do
|
39
39
|
get :index
|
40
40
|
assigns(:circulation_statuses).should eq(CirculationStatus.order(:position))
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
describe
|
45
|
-
it
|
44
|
+
describe 'When not logged in' do
|
45
|
+
it 'assigns all circulation_statuses as @circulation_statuses' do
|
46
46
|
get :index
|
47
47
|
assigns(:circulation_statuses).should eq(CirculationStatus.order(:position))
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
describe
|
53
|
-
describe
|
52
|
+
describe 'GET show' do
|
53
|
+
describe 'When logged in as Administrator' do
|
54
54
|
login_fixture_admin
|
55
55
|
|
56
|
-
it
|
56
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
57
57
|
circulation_status = FactoryGirl.create(:circulation_status)
|
58
|
-
get :show, :
|
58
|
+
get :show, id: circulation_status.id
|
59
59
|
assigns(:circulation_status).should eq(circulation_status)
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
describe
|
63
|
+
describe 'When logged in as Librarian' do
|
64
64
|
login_fixture_librarian
|
65
65
|
|
66
|
-
it
|
66
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
67
67
|
circulation_status = FactoryGirl.create(:circulation_status)
|
68
|
-
get :show, :
|
68
|
+
get :show, id: circulation_status.id
|
69
69
|
assigns(:circulation_status).should eq(circulation_status)
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
-
describe
|
73
|
+
describe 'When logged in as User' do
|
74
74
|
login_fixture_user
|
75
75
|
|
76
|
-
it
|
76
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
77
77
|
circulation_status = FactoryGirl.create(:circulation_status)
|
78
|
-
get :show, :
|
78
|
+
get :show, id: circulation_status.id
|
79
79
|
assigns(:circulation_status).should eq(circulation_status)
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
-
describe
|
84
|
-
it
|
83
|
+
describe 'When not logged in' do
|
84
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
85
85
|
circulation_status = FactoryGirl.create(:circulation_status)
|
86
|
-
get :show, :
|
86
|
+
get :show, id: circulation_status.id
|
87
87
|
assigns(:circulation_status).should eq(circulation_status)
|
88
88
|
end
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
-
describe
|
93
|
-
describe
|
92
|
+
describe 'GET new' do
|
93
|
+
describe 'When logged in as Administrator' do
|
94
94
|
login_fixture_admin
|
95
95
|
|
96
|
-
it
|
96
|
+
it 'should be forbidden' do
|
97
97
|
get :new
|
98
98
|
assigns(:circulation_status).should be_nil
|
99
99
|
response.should be_forbidden
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
-
describe
|
103
|
+
describe 'When logged in as Librarian' do
|
104
104
|
login_fixture_librarian
|
105
105
|
|
106
|
-
it
|
106
|
+
it 'should be forbidden' do
|
107
107
|
get :new
|
108
108
|
assigns(:circulation_status).should be_nil
|
109
109
|
response.should be_forbidden
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
-
describe
|
113
|
+
describe 'When logged in as User' do
|
114
114
|
login_fixture_user
|
115
115
|
|
116
|
-
it
|
116
|
+
it 'should be forbidden' do
|
117
117
|
get :new
|
118
118
|
assigns(:circulation_status).should be_nil
|
119
119
|
response.should be_forbidden
|
120
120
|
end
|
121
121
|
end
|
122
122
|
|
123
|
-
describe
|
124
|
-
it
|
123
|
+
describe 'When not logged in' do
|
124
|
+
it 'should be redirected' do
|
125
125
|
get :new
|
126
126
|
assigns(:circulation_status).should be_nil
|
127
127
|
response.should redirect_to(new_user_session_url)
|
@@ -129,315 +129,315 @@ describe CirculationStatusesController do
|
|
129
129
|
end
|
130
130
|
end
|
131
131
|
|
132
|
-
describe
|
133
|
-
describe
|
132
|
+
describe 'GET edit' do
|
133
|
+
describe 'When logged in as Administrator' do
|
134
134
|
login_fixture_admin
|
135
135
|
|
136
|
-
it
|
136
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
137
137
|
circulation_status = FactoryGirl.create(:circulation_status)
|
138
|
-
get :edit, :
|
138
|
+
get :edit, id: circulation_status.id
|
139
139
|
assigns(:circulation_status).should eq(circulation_status)
|
140
140
|
end
|
141
141
|
end
|
142
142
|
|
143
|
-
describe
|
143
|
+
describe 'When logged in as Librarian' do
|
144
144
|
login_fixture_librarian
|
145
145
|
|
146
|
-
it
|
146
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
147
147
|
circulation_status = FactoryGirl.create(:circulation_status)
|
148
|
-
get :edit, :
|
148
|
+
get :edit, id: circulation_status.id
|
149
149
|
response.should be_forbidden
|
150
150
|
end
|
151
151
|
end
|
152
152
|
|
153
|
-
describe
|
153
|
+
describe 'When logged in as User' do
|
154
154
|
login_fixture_user
|
155
155
|
|
156
|
-
it
|
156
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
157
157
|
circulation_status = FactoryGirl.create(:circulation_status)
|
158
|
-
get :edit, :
|
158
|
+
get :edit, id: circulation_status.id
|
159
159
|
response.should be_forbidden
|
160
160
|
end
|
161
161
|
end
|
162
162
|
|
163
|
-
describe
|
164
|
-
it
|
163
|
+
describe 'When not logged in' do
|
164
|
+
it 'should not assign the requested circulation_status as @circulation_status' do
|
165
165
|
circulation_status = FactoryGirl.create(:circulation_status)
|
166
|
-
get :edit, :
|
166
|
+
get :edit, id: circulation_status.id
|
167
167
|
response.should redirect_to(new_user_session_url)
|
168
168
|
end
|
169
169
|
end
|
170
170
|
end
|
171
171
|
|
172
|
-
describe
|
172
|
+
describe 'POST create' do
|
173
173
|
before(:each) do
|
174
174
|
@attrs = valid_attributes
|
175
|
-
@invalid_attrs = {:
|
175
|
+
@invalid_attrs = { name: '' }
|
176
176
|
end
|
177
177
|
|
178
|
-
describe
|
178
|
+
describe 'When logged in as Administrator' do
|
179
179
|
login_fixture_admin
|
180
180
|
|
181
|
-
describe
|
182
|
-
it
|
183
|
-
post :create, :
|
181
|
+
describe 'with valid params' do
|
182
|
+
it 'assigns a newly created circulation_status as @circulation_status' do
|
183
|
+
post :create, circulation_status: @attrs
|
184
184
|
assigns(:circulation_status).should be_nil
|
185
185
|
end
|
186
186
|
|
187
|
-
it
|
188
|
-
post :create, :
|
187
|
+
it 'redirects to the created patron' do
|
188
|
+
post :create, circulation_status: @attrs
|
189
189
|
response.should be_forbidden
|
190
190
|
end
|
191
191
|
end
|
192
192
|
|
193
|
-
describe
|
194
|
-
it
|
195
|
-
post :create, :
|
193
|
+
describe 'with invalid params' do
|
194
|
+
it 'assigns a newly created but unsaved circulation_status as @circulation_status' do
|
195
|
+
post :create, circulation_status: @invalid_attrs
|
196
196
|
assigns(:circulation_status).should be_nil
|
197
197
|
end
|
198
198
|
|
199
|
-
it
|
200
|
-
post :create, :
|
199
|
+
it 'should be successful' do
|
200
|
+
post :create, circulation_status: @invalid_attrs
|
201
201
|
response.should be_forbidden
|
202
202
|
end
|
203
203
|
end
|
204
204
|
end
|
205
205
|
|
206
|
-
describe
|
206
|
+
describe 'When logged in as Librarian' do
|
207
207
|
login_fixture_librarian
|
208
208
|
|
209
|
-
describe
|
210
|
-
it
|
211
|
-
post :create, :
|
209
|
+
describe 'with valid params' do
|
210
|
+
it 'assigns a newly created circulation_status as @circulation_status' do
|
211
|
+
post :create, circulation_status: @attrs
|
212
212
|
assigns(:circulation_status).should be_nil
|
213
213
|
end
|
214
214
|
|
215
|
-
it
|
216
|
-
post :create, :
|
215
|
+
it 'should be forbidden' do
|
216
|
+
post :create, circulation_status: @attrs
|
217
217
|
response.should be_forbidden
|
218
218
|
end
|
219
219
|
end
|
220
220
|
|
221
|
-
describe
|
222
|
-
it
|
223
|
-
post :create, :
|
221
|
+
describe 'with invalid params' do
|
222
|
+
it 'assigns a newly created but unsaved circulation_status as @circulation_status' do
|
223
|
+
post :create, circulation_status: @invalid_attrs
|
224
224
|
assigns(:circulation_status).should be_nil
|
225
225
|
end
|
226
226
|
|
227
|
-
it
|
228
|
-
post :create, :
|
227
|
+
it 'should be forbidden' do
|
228
|
+
post :create, circulation_status: @invalid_attrs
|
229
229
|
response.should be_forbidden
|
230
230
|
end
|
231
231
|
end
|
232
232
|
end
|
233
233
|
|
234
|
-
describe
|
234
|
+
describe 'When logged in as User' do
|
235
235
|
login_fixture_user
|
236
236
|
|
237
|
-
describe
|
238
|
-
it
|
239
|
-
post :create, :
|
237
|
+
describe 'with valid params' do
|
238
|
+
it 'assigns a newly created circulation_status as @circulation_status' do
|
239
|
+
post :create, circulation_status: @attrs
|
240
240
|
assigns(:circulation_status).should be_nil
|
241
241
|
end
|
242
242
|
|
243
|
-
it
|
244
|
-
post :create, :
|
243
|
+
it 'should be forbidden' do
|
244
|
+
post :create, circulation_status: @attrs
|
245
245
|
response.should be_forbidden
|
246
246
|
end
|
247
247
|
end
|
248
248
|
|
249
|
-
describe
|
250
|
-
it
|
251
|
-
post :create, :
|
249
|
+
describe 'with invalid params' do
|
250
|
+
it 'assigns a newly created but unsaved circulation_status as @circulation_status' do
|
251
|
+
post :create, circulation_status: @invalid_attrs
|
252
252
|
assigns(:circulation_status).should be_nil
|
253
253
|
end
|
254
254
|
|
255
|
-
it
|
256
|
-
post :create, :
|
255
|
+
it 'should be forbidden' do
|
256
|
+
post :create, circulation_status: @invalid_attrs
|
257
257
|
response.should be_forbidden
|
258
258
|
end
|
259
259
|
end
|
260
260
|
end
|
261
261
|
|
262
|
-
describe
|
263
|
-
describe
|
264
|
-
it
|
265
|
-
post :create, :
|
262
|
+
describe 'When not logged in' do
|
263
|
+
describe 'with valid params' do
|
264
|
+
it 'assigns a newly created circulation_status as @circulation_status' do
|
265
|
+
post :create, circulation_status: @attrs
|
266
266
|
assigns(:circulation_status).should be_nil
|
267
267
|
end
|
268
268
|
|
269
|
-
it
|
270
|
-
post :create, :
|
269
|
+
it 'should be forbidden' do
|
270
|
+
post :create, circulation_status: @attrs
|
271
271
|
response.should redirect_to(new_user_session_url)
|
272
272
|
end
|
273
273
|
end
|
274
274
|
|
275
|
-
describe
|
276
|
-
it
|
277
|
-
post :create, :
|
275
|
+
describe 'with invalid params' do
|
276
|
+
it 'assigns a newly created but unsaved circulation_status as @circulation_status' do
|
277
|
+
post :create, circulation_status: @invalid_attrs
|
278
278
|
assigns(:circulation_status).should be_nil
|
279
279
|
end
|
280
280
|
|
281
|
-
it
|
282
|
-
post :create, :
|
281
|
+
it 'should be forbidden' do
|
282
|
+
post :create, circulation_status: @invalid_attrs
|
283
283
|
response.should redirect_to(new_user_session_url)
|
284
284
|
end
|
285
285
|
end
|
286
286
|
end
|
287
287
|
end
|
288
288
|
|
289
|
-
describe
|
289
|
+
describe 'PUT update' do
|
290
290
|
before(:each) do
|
291
291
|
@circulation_status = FactoryGirl.create(:circulation_status)
|
292
292
|
@attrs = valid_attributes
|
293
|
-
@invalid_attrs = {:
|
293
|
+
@invalid_attrs = { display_name: '' }
|
294
294
|
end
|
295
295
|
|
296
|
-
describe
|
296
|
+
describe 'When logged in as Administrator' do
|
297
297
|
login_fixture_admin
|
298
298
|
|
299
|
-
describe
|
300
|
-
it
|
301
|
-
put :update, :
|
299
|
+
describe 'with valid params' do
|
300
|
+
it 'updates the requested circulation_status' do
|
301
|
+
put :update, id: @circulation_status.id, circulation_status: @attrs
|
302
302
|
end
|
303
303
|
|
304
|
-
it
|
305
|
-
put :update, :
|
304
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
305
|
+
put :update, id: @circulation_status.id, circulation_status: @attrs
|
306
306
|
assigns(:circulation_status).should eq(@circulation_status)
|
307
307
|
end
|
308
308
|
|
309
|
-
it
|
310
|
-
put :update, :
|
309
|
+
it 'moves its position when specified' do
|
310
|
+
put :update, id: @circulation_status.id, circulation_status: @attrs, move: 'lower'
|
311
311
|
response.should redirect_to(circulation_statuses_url)
|
312
312
|
end
|
313
313
|
end
|
314
314
|
|
315
|
-
describe
|
316
|
-
it
|
317
|
-
put :update, :
|
318
|
-
response.should render_template(
|
315
|
+
describe 'with invalid params' do
|
316
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
317
|
+
put :update, id: @circulation_status.id, circulation_status: @invalid_attrs
|
318
|
+
response.should render_template('edit')
|
319
319
|
end
|
320
320
|
end
|
321
321
|
end
|
322
322
|
|
323
|
-
describe
|
323
|
+
describe 'When logged in as Librarian' do
|
324
324
|
login_fixture_librarian
|
325
325
|
|
326
|
-
describe
|
327
|
-
it
|
328
|
-
put :update, :
|
326
|
+
describe 'with valid params' do
|
327
|
+
it 'updates the requested circulation_status' do
|
328
|
+
put :update, id: @circulation_status.id, circulation_status: @attrs
|
329
329
|
end
|
330
330
|
|
331
|
-
it
|
332
|
-
put :update, :
|
331
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
332
|
+
put :update, id: @circulation_status.id, circulation_status: @attrs
|
333
333
|
assigns(:circulation_status).should eq(@circulation_status)
|
334
334
|
response.should be_forbidden
|
335
335
|
end
|
336
336
|
end
|
337
337
|
|
338
|
-
describe
|
339
|
-
it
|
340
|
-
put :update, :
|
338
|
+
describe 'with invalid params' do
|
339
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
340
|
+
put :update, id: @circulation_status.id, circulation_status: @invalid_attrs
|
341
341
|
response.should be_forbidden
|
342
342
|
end
|
343
343
|
end
|
344
344
|
end
|
345
345
|
|
346
|
-
describe
|
346
|
+
describe 'When logged in as User' do
|
347
347
|
login_fixture_user
|
348
348
|
|
349
|
-
describe
|
350
|
-
it
|
351
|
-
put :update, :
|
349
|
+
describe 'with valid params' do
|
350
|
+
it 'updates the requested circulation_status' do
|
351
|
+
put :update, id: @circulation_status.id, circulation_status: @attrs
|
352
352
|
end
|
353
353
|
|
354
|
-
it
|
355
|
-
put :update, :
|
354
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
355
|
+
put :update, id: @circulation_status.id, circulation_status: @attrs
|
356
356
|
assigns(:circulation_status).should eq(@circulation_status)
|
357
357
|
response.should be_forbidden
|
358
358
|
end
|
359
359
|
end
|
360
360
|
|
361
|
-
describe
|
362
|
-
it
|
363
|
-
put :update, :
|
361
|
+
describe 'with invalid params' do
|
362
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
363
|
+
put :update, id: @circulation_status.id, circulation_status: @invalid_attrs
|
364
364
|
response.should be_forbidden
|
365
365
|
end
|
366
366
|
end
|
367
367
|
end
|
368
368
|
|
369
|
-
describe
|
370
|
-
describe
|
371
|
-
it
|
372
|
-
put :update, :
|
369
|
+
describe 'When not logged in' do
|
370
|
+
describe 'with valid params' do
|
371
|
+
it 'updates the requested circulation_status' do
|
372
|
+
put :update, id: @circulation_status.id, circulation_status: @attrs
|
373
373
|
end
|
374
374
|
|
375
|
-
it
|
376
|
-
put :update, :
|
375
|
+
it 'should be forbidden' do
|
376
|
+
put :update, id: @circulation_status.id, circulation_status: @attrs
|
377
377
|
response.should redirect_to(new_user_session_url)
|
378
378
|
end
|
379
379
|
end
|
380
380
|
|
381
|
-
describe
|
382
|
-
it
|
383
|
-
put :update, :
|
381
|
+
describe 'with invalid params' do
|
382
|
+
it 'assigns the requested circulation_status as @circulation_status' do
|
383
|
+
put :update, id: @circulation_status.id, circulation_status: @invalid_attrs
|
384
384
|
response.should redirect_to(new_user_session_url)
|
385
385
|
end
|
386
386
|
end
|
387
387
|
end
|
388
388
|
end
|
389
389
|
|
390
|
-
describe
|
390
|
+
describe 'DELETE destroy' do
|
391
391
|
before(:each) do
|
392
392
|
@circulation_status = FactoryGirl.create(:circulation_status)
|
393
393
|
end
|
394
394
|
|
395
|
-
describe
|
395
|
+
describe 'When logged in as Administrator' do
|
396
396
|
login_fixture_admin
|
397
397
|
|
398
|
-
it
|
399
|
-
delete :destroy, :
|
398
|
+
it 'destroys the requested circulation_status' do
|
399
|
+
delete :destroy, id: @circulation_status.id
|
400
400
|
end
|
401
401
|
|
402
|
-
it
|
403
|
-
delete :destroy, :
|
402
|
+
it 'should be forbidden' do
|
403
|
+
delete :destroy, id: @circulation_status.id
|
404
404
|
response.should be_forbidden
|
405
405
|
end
|
406
406
|
end
|
407
407
|
|
408
|
-
describe
|
408
|
+
describe 'When logged in as Librarian' do
|
409
409
|
login_fixture_librarian
|
410
410
|
|
411
|
-
it
|
412
|
-
delete :destroy, :
|
411
|
+
it 'destroys the requested circulation_status' do
|
412
|
+
delete :destroy, id: @circulation_status.id
|
413
413
|
end
|
414
414
|
|
415
|
-
it
|
416
|
-
delete :destroy, :
|
415
|
+
it 'should be forbidden' do
|
416
|
+
delete :destroy, id: @circulation_status.id
|
417
417
|
response.should be_forbidden
|
418
418
|
end
|
419
419
|
end
|
420
420
|
|
421
|
-
describe
|
421
|
+
describe 'When logged in as User' do
|
422
422
|
login_fixture_user
|
423
423
|
|
424
|
-
it
|
425
|
-
delete :destroy, :
|
424
|
+
it 'destroys the requested circulation_status' do
|
425
|
+
delete :destroy, id: @circulation_status.id
|
426
426
|
end
|
427
427
|
|
428
|
-
it
|
429
|
-
delete :destroy, :
|
428
|
+
it 'should be forbidden' do
|
429
|
+
delete :destroy, id: @circulation_status.id
|
430
430
|
response.should be_forbidden
|
431
431
|
end
|
432
432
|
end
|
433
433
|
|
434
|
-
describe
|
435
|
-
it
|
436
|
-
delete :destroy, :
|
434
|
+
describe 'When not logged in' do
|
435
|
+
it 'destroys the requested circulation_status' do
|
436
|
+
delete :destroy, id: @circulation_status.id
|
437
437
|
end
|
438
438
|
|
439
|
-
it
|
440
|
-
delete :destroy, :
|
439
|
+
it 'should be forbidden' do
|
440
|
+
delete :destroy, id: @circulation_status.id
|
441
441
|
response.should redirect_to(new_user_session_url)
|
442
442
|
end
|
443
443
|
end
|