Wrap ChecksImport spec examples in a single describe block (for clearer spec report output)

This commit is contained in:
Ryan Lue 2019-01-28 14:08:33 +08:00 committed by Martin Edenhofer
parent 205a99c56a
commit 8275b56d54

View file

@ -1,4 +1,5 @@
RSpec.shared_examples 'ApplicationModel::ChecksImport' do RSpec.shared_examples 'ApplicationModel::ChecksImport' do
describe '#id (for referential integrity during OTRS/Zendesk import)' do
subject { build(described_class.name.underscore, id: unused_id) } subject { build(described_class.name.underscore, id: unused_id) }
let(:unused_id) { (described_class.pluck(:id).max || 1) * 2 } let(:unused_id) { (described_class.pluck(:id).max || 1) * 2 }
@ -40,3 +41,4 @@ RSpec.shared_examples 'ApplicationModel::ChecksImport' do
end end
end end
end end
end