Sha256: 894f57c127011fdf3e4b40e26e63f47a968084ecd2d880afac6f1db47cb66935

Contents?: true

Size: 850 Bytes

Versions: 2

Compression:

Stored size: 850 Bytes

Contents

require 'spec_helper'

describe Topographer::Importer::Logger::FatalErrorEntry do
  let(:entry) { Topographer::Importer::Logger::FatalErrorEntry.new('test-input', 'failure message') }
  describe '#failure?' do
    it 'should return true' do
      expect(entry.failure?).to be_truthy
    end
  end
  describe '#success?' do
    it 'should return false' do
      expect(entry.success?).to be_falsey
    end
  end
  describe '#source_identifier' do
    it 'should return `import failure`' do
      expect(entry.source_identifier).to eql 'import failure'
    end
  end
  describe '#timestamp' do
    it 'should have a timestamp' do
      expect(entry.timestamp).to be_a(DateTime)
    end
  end
  describe '#message' do
    it 'should return the message it was initialized with' do
      expect(entry.message).to eql('failure message')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
topographer-0.0.9 spec/topographer/importer/logger/fatal_error_entry_spec.rb
topographer-0.0.8 spec/topographer/importer/logger/fatal_error_entry_spec.rb