14 lines
309 B
Ruby
14 lines
309 B
Ruby
|
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
|