spec/lib/rambling/trie/serializers/serializer_spec.rb
# frozen_string_literal: true
require 'spec_helper'
describe Rambling::Trie::Serializers::Serializer do
subject(:serializer) { described_class.new }
describe '#load' do
it 'is an abstract method that raises NotImplementedError' do
expect { serializer.load('any-file.zip') }
.to raise_exception NotImplementedError
end
end
describe '#dump' do
it 'is an abstract method that raises NotImplementedError' do
expect { serializer.dump('any contents', 'any-file.zip') }
.to raise_exception NotImplementedError
end
end
end