Sha256: 5c459a724280a3c84fcf63b29bc4adc4dd96fd8a8869d85650b2875d3079854f

Contents?: true

Size: 660 Bytes

Versions: 14

Compression:

Stored size: 660 Bytes

Contents

require 'spec_helper'

describe GeoConcerns::Discovery::AbstractDocument do
  subject { described_class.new }

  describe '#to_hash' do
    it 'raises an error because the class should not be instantiated directly' do
      expect { subject.to_hash(nil) }.to raise_error(/hash/)
    end
  end

  describe '#to_json' do
    it 'raises an error because the class should not be instantiated directly' do
      expect { subject.to_json(nil) }.to raise_error(/json/)
    end
  end

  describe '#to_xml' do
    it 'raises an error because the class should not be instantiated directly' do
      expect { subject.to_xml(nil) }.to raise_error(/xml/)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
geo_concerns-0.3.4 spec/services/geo_concerns/discovery/abstract_document_spec.rb
geo_concerns-0.3.3 spec/services/geo_concerns/discovery/abstract_document_spec.rb
geo_concerns-0.3.2 spec/services/geo_concerns/discovery/abstract_document_spec.rb
geo_concerns-0.3.1 spec/services/geo_concerns/discovery/abstract_document_spec.rb
geo_concerns-0.3.0 spec/services/geo_concerns/discovery/abstract_document_spec.rb
geo_concerns-0.2.0 spec/services/geo_concerns/discovery/abstract_document_spec.rb
geo_concerns-0.1.1 spec/services/geo_concerns/discovery/abstract_document_spec.rb
geo_concerns-0.1.0 spec/services/geo_concerns/discovery/abstract_document_spec.rb
geo_concerns-0.0.10 spec/services/geo_concerns/discovery/abstract_document_spec.rb
geo_concerns-0.0.9 spec/services/geo_concerns/discovery/abstract_document_spec.rb
geo_concerns-0.0.8 spec/services/geo_concerns/discovery/abstract_document_spec.rb
geo_concerns-0.0.7 spec/services/geo_concerns/discovery/abstract_document_spec.rb
geo_concerns-0.0.6 spec/services/geo_concerns/discovery/abstract_document_spec.rb
geo_concerns-0.0.5 spec/services/geo_concerns/discovery/abstract_document_spec.rb