Skip to content

Commit e5394e1

Browse files
committed
deleting defunct tests
1 parent d7ff14c commit e5394e1

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

spec/models/project_spec.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,6 @@
337337
it 'includes projects with unknown type' do
338338
expect(described_class.all).to include(project_with_unknown_type)
339339
end
340-
341-
it 'does not include scratch projects' do
342-
expect(described_class.all).not_to include(scratch_project)
343-
end
344340
end
345341

346342
describe 'only_scratch scope' do
@@ -365,10 +361,6 @@
365361
it 'includes projects with unknown type' do
366362
expect(projects_in_scope).to include(project_with_unknown_type)
367363
end
368-
369-
it 'does not include scratch projects' do
370-
expect(projects_in_scope).not_to include(scratch_project)
371-
end
372364
end
373365

374366
context 'when only_scratch is true' do

spec/requests/projects/remix_spec.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@
7676
let(:original_project_type) { Project::Types::SCRATCH }
7777
let(:project_type) { Project::Types::SCRATCH }
7878

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-
8579
it 'returns success response if scratch projects are explicitly included' do
8680
get("/api/projects/#{original_project.identifier}/remix?project_type=scratch", headers:)
8781

@@ -128,12 +122,6 @@
128122
context 'when original project is scratch project' do
129123
let(:original_project_type) { Project::Types::SCRATCH }
130124

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-
137125
it 'returns success response if scratch projects are explicitly included' do
138126
post("/api/projects/#{original_project.identifier}/remix?project_type=scratch", params: { project: project_params }, headers:)
139127

spec/requests/projects/show_spec.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,6 @@
213213
expect(response.body).to eq(starter_project_json)
214214
end
215215
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
221216
end
222217

223218
it 'creates a new ProjectLoader with the correct parameters' do

0 commit comments

Comments
 (0)