Sha256: afa8fd333158953c8e6f81bbe51df0d4f783b48628f1b0c972408811b2541fb5

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

Stored size: 273 Bytes

Contents

require 'rails_helper'

describe Apidoco::FileParseError do
  let(:error) { described_class.new(Pathname.new('tmp/test.json'), 'Test') }

  describe '#info' do
    subject(:info) { error.info }

    it { is_expected.to eq('Failed to parse tmp/test.json, Test') }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
apidoco-1.6.4 spec/apidoco/file_parse_error_spec.rb
apidoco-1.6.3 spec/apidoco/file_parse_error_spec.rb
apidoco-1.6.2 spec/apidoco/file_parse_error_spec.rb
apidoco-1.6.1 spec/apidoco/file_parse_error_spec.rb