error_examples.rb 386 B

123456789101112131415
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. RSpec.shared_examples 'declaring an error' do
  3. describe '#error' do
  4. let(:instance) { described_class.new('') }
  5. it 'returns an Array' do
  6. expect(instance.error).to be_kind_of(Array)
  7. end
  8. it 'is contains at least one value' do
  9. expect(instance.error).to be_present
  10. end
  11. end
  12. end