Sha256: b97285776d1165b9bef798712ba60e6e30a9c40b9dc446de2f5e8da5d458efd1
Contents?: true
Size: 829 Bytes
Versions: 2
Compression:
Stored size: 829 Bytes
Contents
require 'spec_helper' describe Topographer::Importer::Logger::Base do let(:logger){Topographer::Importer::Logger::Base.new} describe '#log_fatal' do it 'should log a fatal error' do logger.log_fatal('test input', 'Fatal Error') expect(logger.fatal_errors.first).to be_a Topographer::Importer::Logger::LogEntry expect(logger.fatal_errors.first) end end describe '#success?' do context 'no errors' do before do allow(subject).to receive(:errors?).and_return false end it 'returns true' do expect(subject.success?).to be_truthy end end context 'errors' do before do allow(subject).to receive(:errors?).and_return true end it 'returns false' do expect(subject.success?).to be_falsey end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
topographer-0.0.9 | spec/topographer/importer/logger/base_spec.rb |
topographer-0.0.8 | spec/topographer/importer/logger/base_spec.rb |