File: error_spec.rb

package info (click to toggle)
ruby-unparser 0.6.13-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 936 kB
  • sloc: ruby: 7,691; sh: 6; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 439 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
describe Unparser::Anima::Error do
  describe '#message' do
    let(:object) { described_class.new(Unparser::Anima, missing, unknown) }

    let(:missing) { %i[missing] }
    let(:unknown) { %i[unknown] }

    subject { object.message }

    it 'should return the message string' do
      should eql('Unparser::Anima attributes missing: [:missing], unknown: [:unknown]')
    end

    it_should_behave_like 'an idempotent method'
  end
end