File tree Expand file tree Collapse file tree 3 files changed +0
-25
lines changed Expand file tree Collapse file tree 3 files changed +0
-25
lines changed Original file line number Diff line number Diff line change 337
337
it 'includes projects with unknown type' do
338
338
expect ( described_class . all ) . to include ( project_with_unknown_type )
339
339
end
340
-
341
- it 'does not include scratch projects' do
342
- expect ( described_class . all ) . not_to include ( scratch_project )
343
- end
344
340
end
345
341
346
342
describe 'only_scratch scope' do
365
361
it 'includes projects with unknown type' do
366
362
expect ( projects_in_scope ) . to include ( project_with_unknown_type )
367
363
end
368
-
369
- it 'does not include scratch projects' do
370
- expect ( projects_in_scope ) . not_to include ( scratch_project )
371
- end
372
364
end
373
365
374
366
context 'when only_scratch is true' do
Original file line number Diff line number Diff line change 76
76
let ( :original_project_type ) { Project ::Types ::SCRATCH }
77
77
let ( :project_type ) { Project ::Types ::SCRATCH }
78
78
79
- it 'returns 404 response if scratch projects are not explicitly included' do
80
- get ( "/api/projects/#{ original_project . identifier } /remix" , headers :)
81
-
82
- expect ( response ) . to have_http_status ( :not_found )
83
- end
84
-
85
79
it 'returns success response if scratch projects are explicitly included' do
86
80
get ( "/api/projects/#{ original_project . identifier } /remix?project_type=scratch" , headers :)
87
81
128
122
context 'when original project is scratch project' do
129
123
let ( :original_project_type ) { Project ::Types ::SCRATCH }
130
124
131
- it 'returns 404 response if scratch projects are not explicitly included' do
132
- post ( "/api/projects/#{ original_project . identifier } /remix" , params : { project : project_params } , headers :)
133
-
134
- expect ( response ) . to have_http_status ( :not_found )
135
- end
136
-
137
125
it 'returns success response if scratch projects are explicitly included' do
138
126
post ( "/api/projects/#{ original_project . identifier } /remix?project_type=scratch" , params : { project : project_params } , headers :)
139
127
Original file line number Diff line number Diff line change 213
213
expect ( response . body ) . to eq ( starter_project_json )
214
214
end
215
215
end
216
-
217
- it 'returns 404 response if scratch project' do
218
- get ( "/api/projects/#{ starter_project . identifier } ?locale=#{ starter_project . locale } " , headers :)
219
- expect ( response ) . to have_http_status ( :not_found )
220
- end
221
216
end
222
217
223
218
it 'creates a new ProjectLoader with the correct parameters' do
You can’t perform that action at this time.
0 commit comments