blob: 68e37171ea293b51c7c2c92ee2b59c9fdd000c6b (
plain)
1
2
3
4
5
6
7
8
9
10
|
# frozen_string_literal: true
RSpec.shared_examples 'work item base types importer' do
it 'creates all base work item types' do
# Fixtures need to run on a pristine DB, but the test suite preloads the base types before(:suite)
WorkItems::Type.delete_all
expect { subject }.to change(WorkItems::Type, :count).from(0).to(WorkItems::Type::BASE_TYPES.count)
end
end
|