2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2020-08-28 14:07:30 +00:00
|
|
|
RSpec.shared_examples 'declaring an error' do
|
|
|
|
describe '#error' do
|
|
|
|
let(:instance) { described_class.new('') }
|
|
|
|
|
|
|
|
it 'returns an Array' do
|
|
|
|
expect(instance.error).to be_kind_of(Array)
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'is contains at least one value' do
|
|
|
|
expect(instance.error).to be_present
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|