Skip to content

Commit 93bd1ce

Browse files
committed
adding test
1 parent 7945fa2 commit 93bd1ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/models/project_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@
323323
describe 'default scope' do
324324
let!(:python_project) { create(:project, project_type: Project::Types::PYTHON) }
325325
let!(:html_project) { create(:project, project_type: Project::Types::HTML) }
326+
let!(:scratch_project) { create(:project, project_type: Project::Types::SCRATCH) }
326327
let!(:project_with_unknown_type) { create(:project, project_type: 'unknown') }
327328

328329
it 'includes python projects' do
@@ -333,6 +334,10 @@
333334
expect(described_class.all).to include(html_project)
334335
end
335336

337+
it 'includes scratch projects' do
338+
expect(described_class.all).to include(scratch_project)
339+
end
340+
336341
it 'includes projects with unknown type' do
337342
expect(described_class.all).to include(project_with_unknown_type)
338343
end

0 commit comments

Comments
 (0)