mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
15 lines
380 B
Ruby
15 lines
380 B
Ruby
# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
|
|
|
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_a(Array)
|
|
end
|
|
|
|
it 'is contains at least one value' do
|
|
expect(instance.error).to be_present
|
|
end
|
|
end
|
|
end
|